CSS and Internet Explorer
Tuesday July 24th 2007, 4:23 am
Filed under: Internet

All versions of Internet Explorer have problems correctly interpreting CSS. There are ways to improve IE compatibility, however, and one of the simplest is the following markup, called a doctype declaration:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Paste it at the top of your document, before anything else. See here for a detailed explanation of how it works.




Mnay thanks. I spent 30 minutes looking for exactly this info.

Comment by Jamie 10.05.07 @ 9:10 am

Good work. You’ve earned a share of my prize.

Comment by nobel 10.10.07 @ 10:14 am

I don’t even think I can give you the benefit of the doubt, seeing that this post was published at 4am.

This has to be the worst CSS “tutorial” I have ever seen. Not only is it compltely off base, but the CSS provided as a solution is very reptitive, verbose and unnecessary.

It’s obvious that web development is new to you, if it isn’t then it’s unfortunate that you haven’t broadend your horizons. You should pick up a book on CSS, read up on best practices and web semantics.

Good luck.

Comment by Joe DuFloth 10.21.07 @ 10:25 am