The other day, I had chopped up a design. Sliced and diced if you will. I proceeded to creating the HTML once all of the images were sliced up.
Things were going great. As per usual I began designing in Mozilla to use Firebug to tweak the CSS and HTML. Once I finished the design, I proceeded to test in Chrome, Safari, and of course, Internet Explorer.
Every browser but Internet Explorer was working perfectly, what gives?The worse part is, I know I’ve had this problem before. If you’re like me, you may have worked on 100s of different projects and they all start to blend together because you’ve done this here and that there.
Luckily, I was actually able to remember what the problem was! I forgot my DOCTYPE at the top of my file:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
Add that bad boy to the top of your file, reload and voila, Internet Explorer now loads the web site like every other browser does!
This may not be the only issue that you see without a DOCTYPE and Internet Explorer. Sometimes it may be a spacing issue, things wrapping incorrectly, etc… The route of the cause will, most likely, be a missing DOCTYPE.
Cheers.

Categories
Tag Cloud
Blog RSS
Comments RSS
Last 50 Posts
Back
Void « Default
Life
Earth
Wind
Water
Fire
Light 
DUDE, THANK YOU! I was getting ready to go to war with my IE browser. I somehow missed updating the doctype from the default that is given when creating a new page in Edit Plus.Thank you! I can never remeber those doc types by memory, so for simple documents I always used to leave them out. Needless to say, I had a lot of headaches with Internet explorer and other browsers. Thank you for the tip.Thanks – that saved me some time
Thank you. I was searching my brain for some answer and it was as simple as that. You saved me from starting all over again.THANK YOU
Thx, man!thanks bro it helps. after an hour fighting with my IE browser at last i manage to fixed it.God, I was wondering why my notepad website was giving me such a head ache.Thank you very much!
Of course, leave it to IE to hold us to the most stringent of xhtml markup standards, and yet until version 9.0 they don’t even comply with css2.Thanks a lot for this advice, centering blocks id always the most anoying, and this just saved me quite a bit of time.
Thanks for sharing this .This is very helpful to every designer
ahah thanks, how could i miss that.