Friday, June 11, 2010

Getting IE7 and IE6 to work

As I said in a comment I find it amusing that my page regard IE7 and inline blocks is my most visited page simply because I added it as a personal reminder. I think it goes to show how much this element is being used compared to a:hover blocks and IE6 which is a little more esoteric. The comments added are certainly ego boosting anyway :-)

So why am I creating another entry, well I'm hoping this will be the launch page for people searching about inline-blocks and Internet Explorer 7 (hence the repetition) and that they might stop to read some of the other tips scattered around my blog and accessible via links on this entry. Operating systems using different dpi is still a problem for instance.

Also to give one big massive tip to use before you even start coding USE A STRICT DOCTYPE, ooo all caps bold massive.

I am serious though, I don't care if you're using inline element styles or frames that aren't supported by the strict doctype starting your page with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> sets both IE6 and IE7 into a different rendering mode

This means that odd disjointed blocks or borders that have you cursing often resolve themselves without having to specifically nudge them 3px thataway.So do yourself a favour start off strict.

1 comments:

Orphi said...

It's called “quirks mode” for a reason! ;-)