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
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