ShootingBlanks Posted November 19, 2007 Share Posted November 19, 2007 I made the background (body) of a page black. Then I have a div that's 500px wide with a white background and a margin of "auto" and a padding of "0". I want it to appear that there's "black bars" on either side of the page, but sometimes there's not a lot of content in that white div, so it doesn't stretch at least to the bottom of the page... ...To compensate, I added a "min-height" of 600px to the white div. This worked fine in FireFox and IE7, but in IE6, it still doesn't work. The "black bars" (or, the page's background) only goes down as far as the white div spans (which in some cases is only halfway down the page). Is there a workaround for this? Why doesn't "min-height" work in IE6? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/77945-min-height-not-work-in-ie6-is-there-a-workaround/ Share on other sites More sharing options...
obsidian Posted November 19, 2007 Share Posted November 19, 2007 IE doesn't recognize any of the min-* or max-* CSS attributes. In order to get a min-height working, try something like this: HTML code: <div id="wrapper-div"> <div class="spacer-div"></div> <div class="spacer-clear"></div> </div> CSS: #wrapper-div { border: 1px solid #000000; background-color: #f4f4f4; } .spacer-div { float: right; height: 400px; width: 1px; } .spacer-clear { clear: right; } Quote Link to comment https://forums.phpfreaks.com/topic/77945-min-height-not-work-in-ie6-is-there-a-workaround/#findComment-394539 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.