Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Margin widths seem to right in Firefox, but double the size in IE 2

Status
Not open for further replies.

rexolioISback

Programmer
Sep 20, 2006
15
US
Not sure why, but it seems anytime I use the Margin style, its correct in Firefox but not in IE.

If I set the following:

margin: 5px 8px 6px 8px;

The top and bottom margins are correct in both browsers. But the left margin, although perfect in Firefox, always appears to be double the width in IE.

:(
 
adjust the margin and/or padding of your parent element. if you have no parent elements, adjust the margin/padding of your body tag.

Code:
body {
   margin: 0;
   padding: 0;
}

i usually start my css with this, to remove ALL padding and margin, since they're different in different browsers:

Code:
* {
   margin: 0;
   padding: 0;
}



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Thanks, cLFlaVA. I have that in place, and the margin is still off on Left and Right margins in IE.
 
Who's the bomb???? Vragabond, that's who!!!

Thanks a TON. That was driving me BONKERS. The
Code:
display: inline;
did the trick!

Thanks to you too, cLFlaVA!
 
cLFlaVA, I have flash cards with them in my bathroom and I rehearse them every time I take a dump.
 
Thanks Kindly Vragabond

That link will keep me busy for a while!

sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top