View Full Version : negative margin not working in IE7?
I can't figure out how to get IE7 to correctly apply the negative margin-top I have set for the "main-inner" div on this site (http://zakserver3.midphase.com/~minevan8/d6sandbox/). In Firefox 2, 3, and even IE 6, the main content area appears where I want, but in IE7, it's too far down the page.
Any ideas how to get IE7 to cooperate?
Thanks!
jscheuer1
08-13-2008, 06:32 AM
I can't really tell why. But if instead of applying the negative top margin to main-inner, you apply it to the two divisions (sidebar-left and content) immediately within main-inner, it looks like (IE 7 developer toolbar) it will work. This should also be fine in other browsers.
jscheuer1,
Thanks for the idea! For some reason that threw off the floats, but it gave me the idea to add an additional inner div and for whatever reason I was able to add a negative margin to that.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.