views:

105

answers:

2

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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd"&gt;

All of a sudden all my tables collapsed that use cellpadding and cellspacing. The page looks fine in IE7 but has collapsed in Firefox. Is this expected?

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

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

A: 

Did you write "cellpadding=10" or "cellpadding=10px" ?

akuckartz
A: 

That's not something that should happen generally. Might there be some markup that's getting interpreted differently? Did you try validating the HTML?

David Baron