PDA

View Full Version : css widths in ie and moz


nectar
05-11-2003, 04:56 PM
Hi
Could someone confirm whether explorer and nav. and moz all place divs in the same position and give the same width sizes. I have A gif with a 1px line running vertically which needs to line up the 1 pix border of a div. Hope you can imagine it. Actually quite a few lines that run vertically from div right and left borders into vertical lines of gifs. Thing is, is that the lines or (dashes in this case) may line up in explorer and not in mozilla or navigator, or the reverse. I have also noticed that when you give a border to a div, in explorer the border is drawn outside of div, whereas border is drawn inside of the div in mozilla.
Would appreciate any answers that anyone has
Thanks

jkd
05-11-2003, 05:34 PM
It has to do with varying box models. IE seriously misinterpretted the CSS box model, making it incompatible with the correct one, like Mozilla, Opera, Konqueror, and Safari all implement.

A quick search on these forums for "box model" should reveal mounds of information on how to workaround IE's crappiness.

nectar
05-11-2003, 06:58 PM
thanks a lot, I'll have a look