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
https://forums.phpfreaks.com/topic/188261-ie-vs-firefox-w-padding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.