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!

IE is pushing my webpage to the right

Status
Not open for further replies.

magicandmight

IS-IT--Management
Aug 27, 2004
77
US
My web page is being pushed maybe 5px to the right automatically when viewed in IE. In Firefox it does not give me that problem. I had one float but I entered the fix for that, display: inline;

Website:
 
Check your css. You apply padding and margin 0 to no element. That seems to be a mistake or a wrong way of looking at things. Your gap is there because of the default gutter on the body element. In FF it is suppressed, while in IE it exists. I suggest you add
Code:
body {
  margin: 0;
  padding: 0;
}
to your stylesheet. That should clear up all the problems.
 
Thank you that worked, I had put the code as it was because I saw somewhere years ago say that and I have pretty much just always left it up there hoping it was working, guess the person just wrote it down wrong a long time ago. Thx again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top