Jump to content

IE vs. Firefox w/ padding?


galvin

Recommended Posts

I am having problems with the stupid difference in how IE and Firefox handle padding differently in terms of overall width.

 

I came across a forum thread (link at the end)that says to add this style definition:

 

DIV{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}

 

Everybody on the forum said it worked for them and praised it as such a great, simple solution.  My question is where do I put this code?  In my CSS I presume, but where?  At the top or does it not matter?

 

Probelm is that I added it to the top of my CSS and I still have Firefox rendering the padding differently.  Anyone know if this "fix" really should work or not?  If so, please let me know where I need to put this bit of code (and maybe explain it a little more if you understand it well)

 

LINK:  http://www.ozzu.com/website-design-forum/positioning-with-mozilla-t24024.html

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.