Are table cellspacing and cellpadding always 0 (EVEN IF EXPLICTILY SET) if in strict mode?

Posted by Pete Alvin on Stack Overflow See other posts from Stack Overflow or by Pete Alvin
Published on 2010-06-11T17:31:46Z Indexed on 2010/06/11 17:32 UTC
Read the original article Hit count: 531

Filed under:
|
|
|
|

I have a page I'm converting from quirks mode to strict mode. I added this:

All of a sudden all my tables collapsed that use cellpadding and cellspacing. Is this expected?

By using strict mode, even if I set cellpadding=10 it will render as 0? (no padding)?

The page looks fine in IE7 but has collapsed in Firefox.

I guess I have to convert all the table cells to divs.

© Stack Overflow or respective owner

Related posts about html5

Related posts about css3