- quirks mode and strict mode: quirks mode and strict mode are the two modes that the modern browsers can use to interpret your CSS. more...
- conditional comments in IEs : conditional comments only work in IEs, and are thus excellently suited to give special instructions meant only for IEs. more...
Now, the idea comes out after reading the above two articles.
- put the doctype in the page to turn the strict mode on.
- put all the css hacks in a seperate file, including it using the conditional comments.
Although there are other hacks for a lot of old browsers, we can safely omit them, for those browsers are almost dead now.
I will talk about some important css bugs in IEs in the next blog. That's all for today. :-)

Recent comments
4 weeks 4 days ago
4 weeks 6 days ago