How can I put a <div> in <td> ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry

    #1

    How can I put a <div> in <td> ??

    hi guys, could anyone help me with this?
    I tried to put a <div> in a <td>, and a <table> in that <div>.
    It looks fine, but my div can't fit in my <td>, there's always a space
    between the bottom of the <div> and the bottom of the <td>. I try to
    put margin-bottom:0 px to the <td>, <tr> also <table>, but there's
    still a space there. I need the div fit in the <td> totally. Could any
    one tell me how?
  • Lasse Reichstein Nielsen

    #2
    Re: How can I put a &lt;div&gt; in &lt;td&gt; ??

    drexelterry@aol .com (Terry) writes:
    [color=blue]
    > I tried to put a <div> in a <td>, and a <table> in that <div>.[/color]

    This is not a Javascript question. You should find a group that
    discusses CSS.

    Anyway, hints: Make sure there is no space or newline between <td> and
    <div> and between </div> and </td>. Set padding on the <td> to 0.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...