Forum Moderators: open
Question - does 4.01 strict mean that a page that shows proper in I.E. and Opera, will also look good in N 4.78, which i was designing for a couple of years ago? Should i be building strict 4.01 code?
Nevertheless, I am now developing in "strict" HTML, just to break all my bad habits from HTML 3.2 coding. I thought about going XHTML 1.1, and I still may, but with XHTML shaping up as a major break with the past, I think I'll probably wait until we are at that stage, sthaer than learn and unlearn XHTML 1.1
You should export the CSS to an external file and call it with a one line instruction in the <head> section.
Many people have always recommended using:
<link type="text/css" rel="stylesheet" src="/path/file.css">
however, NN 4 can still "see" the CSS if you use that one.
To hide the CSS from that version of the browser, and stop the overlapping content/images problems, use this instead:
<style type="text/css">
@import url(path/file.css);
</style>
This latter version will serve a plain version to NN 4 users, but the layout will not be badly corrupted. The site will still appear as you intended in Mozilla, modern Netscape, Infernal Exploder, etc.