Forum Moderators: not2easy

Message Too Old, No Replies

trying to put site center

         

Gilos

6:45 pm on Dec 5, 2010 (gmt 0)

10+ Year Member



Hello,

I have site that I`m building but in this site, I have a little problem.

ONLY in explorer 7 my site is on the right side. In others browsers its seems ok.

This is the code:

#wrap { margin-left:auto; margin-right:auto; width:960px; position: relative;}

Any Ideas?

milosevic

10:21 am on Dec 6, 2010 (gmt 0)

10+ Year Member



Gilos, there's nothing wrong with that code, it will most likely be something else inside that which is overflowing it's container.

You could try adding "overflow:hidden" to #wrap as a quick fix/hack but get to the root of the problem we'd need to see all the HTML and CSS

rocknbil

4:50 pm on Dec 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ONLY in explorer 7 my site is on the right side.


Look for float: right, text-align:right, or some absolute position with top and right at 0?

Presuming #wrap is an outermost wrapping element, I'm curious as to why you need the position property at all? Put a border on it to see what's up:

#wrap { margin-left:auto; margin-right:auto; width:960px; position: relative; border:1px solid #000; }

... my first guess is that you have something inside wrap that is absolutely positioned, causing the content to jump outside the #wrap container.