[thelist] keeping table cells closed in NN 6.0

rudy r937 at interlog.com
Thu Jan 25 21:13:31 CST 2001


>  http://www.monarchmedia.com/ubms/templates/index.html

hi zachary

it's probably the DTD

you're not gonna believe it until you read this article --

  Does Netscape 6 Break Your Table Layouts?
  http://evolt.org/article/Netscape6/17/4427/index.html

i have read it a couple times, including the comments, and i'm still not
sure which DTD i should be using -- i've always used the "long" one but
according to dogfood's comments, netscape 6 isn't picking it up correctly
(it's "too long"!)


also, zachary, i see you using rowspans and colspans to achieve the 1-pixel
border -- this may be too late, but you could opt for a nested table
instead

nothing like a recycled tip, eh?   maybe i'd better rename it this time...

<tip type="html"  newname="cross-browser coloured table border hack">

what is the difference between cellpadding and cellspacing? cellpadding
pads the content of each cell, and cellspacing spaces the cells apart from
each other

here's an example of cellspacing being used in a nested table to simulate a
neat coloured border effect

  <table bgcolor="#990000"
         border="0" cellpadding="0" cellspacing="0">
  <tr><td><table
         border="0" cellpadding="9" cellspacing="1">
  <tr bgcolor="#FFFFCC"><th>foo</th></tr>
  <tr bgcolor="#CCFFFF"><td>bar</td></tr>
  </table></td></tr>
  </table>

</tip>

notice the cellspacing=1 in the inner table gives the same result as your
1-pixel gifs

i've used nested tables up to five deep and never had any rendering
problems, if you were possibly concerned about that...


rudy.ca





More information about the thelist mailing list