I recently changed my doctype declaration from short form to long form. Now Firefox isn't displaying the contents of the table correctly. Changing the doctype switched the browser from Quirks to Standards mode.
The attached file shows the problem. Is there any way to fix this without having to set P for margin=0? I would prefer not to make any changes to the paragraph tag as it would affect the whole site.
I need some way to style the text... Can I specify font properties in the "td" class without specifying "td p"? And will not having paragraph tags cause issues for other browsers?
Your response made me think... All I needed to do was setup a table class, and then specify a "td p" declaration. That is a good work-around, and keeps me from having to adjust the paragraph properties globally.
Takin' in the view from the outside. Feeling like the underdog. Watching through the window I'm on the outside. Living like the underdog. -Dream Theater
Changing the doctype switched the browser from Quirks to Standards mode.
That's the way it SHOULD be.
Quote:
I would prefer not to make any changes to the paragraph tag as it would affect the whole site.
Not necessarily. While I detest tables for layout, there IS away to style a <p> inside. Give the table an ID or class, then make the changes in CSS to change ONLY those <p> tags inside that table.
Obviously the better solution is to not use tables for layout at all, and I agree with Karinne - use an unordered list instead of a table.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" Carolina Corvette Club