1 reply [Last post]
FeP
Offline
newbie
Last seen: 19 years 12 weeks ago
Joined: 2004-03-10
Posts: 1
Points: 0

Hello,

I have a problem, perhaps could you help me : I specify an absolut position for a div, the position is good when I don't specify any Doctype. But when I specify the XHTML 1.0 stric Doctype, in Mozilla 1.6 the div is not at the same place any more, he's shift 4px to the top and to the left. In IE6 nothing is changing. I really don't understand why...!!!
You could see the problem at this URL : http://lafranceenphotos.free.fr/test/carte/index.php
So if anyone as an idea, he will be welcome.
Thank you for having read my english...

FeP

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 weeks 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Doctype, position absolut and mozilla

Hi Fep,
Different doctypes switch the page between standard mode and quirks mode.
Usually the change is most notable in IE as there is a difference in the way IE handels the box model between the two.
Here are some links that explain it better then I can:
http://gutfeldt.ch/matthias/articles/doctypeswitch.html
http://www.ericmeyeroncss.com/bonus/render-mode.html
http://www.hut.fi/~hsivonen/doctype.html

Hope that helps