6 replies [Last post]
flashmx2004
Offline
newbie
Last seen: 15 years 49 weeks ago
Joined: 2004-01-07
Posts: 5
Points: 0

Hi-

I have a main div, and to center it, I have used

left: 50%;
margin-left: -375px;

This renders just fine in Netscape, but acts as though there is no negative margin in IE. Please help!!!

Thanks!

Big John
Big John's picture
Offline
Enthusiast
Arizona
Last seen: 16 years 7 weeks ago
Arizona
Timezone: GMT-7
Joined: 2003-10-29
Posts: 94
Points: 0

negative margins in IE misrenders; works fine in NS

Got a link?

http//www.positioniseverything.net/

flashmx2004
Offline
newbie
Last seen: 15 years 49 weeks ago
Joined: 2004-01-07
Posts: 5
Points: 0

negative margins in IE misrenders; works fine in NS

gospastic
Offline
newbie
Denmark
Last seen: 15 years 50 weeks ago
Denmark
Joined: 2003-12-29
Posts: 3
Points: 0

negative margins in IE misrenders; works fine in NS

try using position: absolut; instead of position: relative;

flashmx2004
Offline
newbie
Last seen: 15 years 49 weeks ago
Joined: 2004-01-07
Posts: 5
Points: 0

negative margins in IE misrenders; works fine in NS

now, with absolute, its centered on the left edge in both browsers Sad

flashmx2004
Offline
newbie
Last seen: 15 years 49 weeks ago
Joined: 2004-01-07
Posts: 5
Points: 0

negative margins in IE misrenders; works fine in NS

how strange....I changed it back, and it didn't make any difference. So, i cleared internet cache, and then it went to the original positions, as stated in my first post.

flashmx2004
Offline
newbie
Last seen: 15 years 49 weeks ago
Joined: 2004-01-07
Posts: 5
Points: 0

negative margins in IE misrenders; works fine in NS

cleared my cache again...and PRESTO! It all works the way its supposed to.