CSS: Browser Standards

txrandom

Diamond Member
Aug 15, 2004
3,773
0
71
I'm redoing my home page by making the PHP/MySQL secure and efficient along with updating the layout from tables and tags to mostly CSS.

I've been refreshing my site with Mozilla and it's turning out fine. But when I go into IE6, it's all messed up. I've been reading around and it sounds like you have to tell IE6 to be compliant. How do I tell IE6 to work with my website? Also, I don't have IE7 installed, will display CSS like IE6 or Firefox?
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
No, the box model hack is no longer that useful now that IE <6 is mostly a negligible market. What you want is a strict DOCTYPE to force standards-compliant mode on all browsers. I recommend HTML 4.01. Put this on the first line of your page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

IE7 has fixed some glaring bugs, but has also retained some. Either way you will probably need specific fixes for each browser.