Easy CSS Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

OK, I shouldn't even have to ask this question, because I should have been
able to figure it out. WRONG!

I have the following table in FP 2003:
<table class="quotetable" cellspacing="15">
I want to move the cellspacing attribute to my CSS.

Tell me what the CSS line will look like for either:
..quotetable
..quotetable td

Thanks
 
I want to move the cellspacing attribute to my CSS.

That's simple. You cannot. There is no CSS style that is reliably
supported that mimics cellspacing.
 
There is a border-spacing style, but it's not well supported.

C'est-la vie....

And, you're welcome!

--
Murray
--------------
MVP FrontPage


Don Dean said:
Nuts!
Thanks for the quick response Murray.
 
I find that using

..quotetable td {padding: 15px;}

Works pretty well but should be tested in browser you care about since as
Murray says it doesn't always work. ;-)
 
That would work, but it pads inwards from the cell boundaries rather than
pushing the cells farther apart. So content is spaced away from the edges
of the cells.

CSS padding is most analogous to HTML cellpadding (for obvious reasons!)....
 
Me bad, I misread cellpadding instead of cellspacing.

In theory .quotetable td {margin: 15px;} should do it but it doesn't work.

--
Cheryl D. Wise
MS FrontPage MVP
Certified Professional Web Developer
Start to Web - next class session begins March 5 Intro to FrontPage,
FrontPage Level 2, Intro CSS See http://starttoweb.com
 
Back
Top