Results 1 to 3 of 3
Thread: Styling table cells in xhtml
Feb 12, 2007, 03:55 #1
Styling table cells in xhtml
I've been experimenting with various table styles, including use of the html cellspacing attribute. It appears there are basically three cell border styles:
1) Allow all the cell borders to collapse together, although this intentionally causes some borders to appear superimposed on others. Most of the time this doesn't matter but it doesn't look great if you have different color cell borders.
2) Allow all the table cells to be seperated by the default cellspacing (or border-spacing).
3) Set cellspacing to 0 to allow all borders to sit flush with no spacing.
I am focusing on IE6, which reportedly does not support border-spacing. Is it possible to get the third option without without using cellspacing? Is it ok to use cellspacing in xhtml? It validates but it doesn't feel correct.
Feb 12, 2007, 06:33 #2
- Join Date
- Apr 2002
- A Maze of Twisty Little Passages
- 60 Post(s)
- 0 Thread(s)
Feb 12, 2007, 14:08 #3
Thanks xhtmlcoder. It's a pity I can't do option 3 strictly in CSS because it makes the styling process inconsistent. I have to apply the cellspacing to each and every table rather than a single stylesheet. What a pain.