I set my theme to XHTML 1.0 Strict via the theme's settings in AutoTheme. Feeling satisfied with that, I didn't investigate any further. I've looked at my source in all the browsers and skimmed right over the DOCTYPE declaration without a notice.
The source was the same across the board, but still the browsers were rendering differently. Firefox and Netscape viewed identically... Internet Explorer and Opera were identical too... Everything was perfect, except for one scrolling div that was breaking the (778px, centered) layout in FF/NS.
Then I finally noticed (in the source) that PN was using it's own DOCTYPE (4.01 Transitional). AHA! :) This was the problem! See, when you declare a DOCTYPE, it automatically uses the browser's "quirks mode" unless you specify otherwise. After some research, I found this document which confirmed my "findings".
I then edited header.php in PN to use an XHTML 1.0 Strict DOCTYPE, and VOILA!!! All the browsers were rendering my design the same!!
So...moral of the story: if you're designing an XHTML AutoTheme, be sure to change PN's DOCTYPE declaration to reflect it...and you'll be well on your way to a fully accessible, and nearly identical, AutoTheme in the top 4 browsers... However, note that merely changing PN's DOCTYPE will not make it XHTML Strict, but it will definitely help you along in your design of compliant div-based themes.
Working strictly with
's and no tables is tricky to say the least, but don't give up! It can be done!! There are also CSS tricks (avoid hacks at all costs) that can help you overcome some of the obstacles along the way.
And finally...remember that it's great if you can design an XHTML Strict theme, but if PN itself doesn't validate as XHTML Strict, then your theme (when applied to PN) will not validate either (even if the theme validates alone.)
--
Photography | PHP | Other
And finally...remember that it's great if you can design an XHTML Strict theme, but if PN itself doesn't validate as XHTML Strict, then your theme (when applied to PN) will not validate either (even if the theme validates alone.)
--
Photography | PHP | Other
