In my website I'm using divs with a border around them. The big problem is that IE puts the borders "inside" of the size given, and Firefox puts the border "outside". How can I solve this problem?
div border differences in IE and firefox
Collapse
X
-
It sounds like you are having "box model" problems. IE uses the wrong box model for web pages in many instances. To fix it, you need a proper doctype, which I assume you aren't. See the sticky at the top of this board about doctypes. -
Post your code so we can see the difference with the two browsers.Originally posted by faeryIn my website I'm using divs with a border around them. The big problem is that IE puts the borders "inside" of the size given, and Firefox puts the border "outside". How can I solve this problem?
AricComment
-
I read the sticky and put the right doctype in my code, which didn't help.Originally posted by drhowarddrfineIt sounds like you are having "box model" problems. IE uses the wrong box model for web pages in many instances. To fix it, you need a proper doctype, which I assume you aren't. See the sticky at the top of this board about doctypes.
I put this in my stylesheet:
I'm pretty new to this kind of thing, what else do you need?Code:div.back { background-color: #FFFFFF; border: 5px solid #CC00FF; position:absolute; left: 200px; top: 125px; width: 600px; height: 350px; }Comment
Comment