Welcome to WebmasterWorld Guest from 54.146.59.202

Forum Moderators: not2easy

Message Too Old, No Replies

Padding problem between IE and Mozilla

padding problem between IE and Mozilla

     
8:27 pm on May 8, 2003 (gmt 0)

10+ Year Member



I apologize if this has been explained before but I'm a little new to the specifics of CSS.

I created a style that is 150px wide with 10px of padding all around, and the background color is Red.

When I view it in Internet Explorer, the red box is exactly 150 pixels wide. When I view it in Mozilla, the red box is 170 pixels wide.

What is causing this?

9:02 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hello tomhouy...Welcome to Webmasterworld [webmasterworld.com]

You have encountered the infamous IE Box Model problem.. IE is wrong Moz is correct

the specifics take a bit of time to understand...but it's been explained in this post [webmasterworld.com] and there are various workarounds discussed there too....

Suzy

9:03 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



This only affects IE5.5 for Windows... The truth is, IE is wrong - all other browsers are right.

For more information about how height and width works, consult this thread [webmasterworld.com] (message 38)

1:27 am on May 9, 2003 (gmt 0)

10+ Year Member



Thank you all for your help! This has been driving me nuts. I have a couple books on CSS but never really understood what that box model hack was until reading this site. :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month