OaktownBill
asked on
CSS Div stretching issue (min-height)?
The page in question is here:
http://stage2.daileydev.com/
The main CSS mile is at:
http://stage2.daileydev.com/css/all.css
The "container" div contains a 1 pixel background which creates the grey divider line between the side navigation and the content section.
The issue is that I need that container to stretch to meet the bottom of the browser window so that it touches the outside box, even when the content is not long enough to make the div stretch. I tried experimenting with the min-height: 100% element on various tags, but I wasn't able to get it to work. Any help would be appreciated.
Ideas?
http://stage2.daileydev.com/
The main CSS mile is at:
http://stage2.daileydev.com/css/all.css
The "container" div contains a 1 pixel background which creates the grey divider line between the side navigation and the content section.
The issue is that I need that container to stretch to meet the bottom of the browser window so that it touches the outside box, even when the content is not long enough to make the div stretch. I tried experimenting with the min-height: 100% element on various tags, but I wasn't able to get it to work. Any help would be appreciated.
Ideas?
ASKER
Hi Amarjit,
I'm seeing it on IE7 and Firefox 3 on Windows. It's not visible unless the browser window is big enough or the screen resolution is high enough it seems.
Bill
I'm seeing it on IE7 and Firefox 3 on Windows. It's not visible unless the browser window is big enough or the screen resolution is high enough it seems.
Bill
try this
#page-box {all.css (line 65)
background:transparent url(../images/bg-body.gif) repeat-y scroll 0 0;
height:100%;
margin:0 auto;
min-height:100%;
width:872px;
}
#main {all.css (line 156)
height:inherit;
padding:32px 11px 0 12px;
}
#page-box {all.css (line 65)
background:transparent url(../images/bg-body.gif)
height:100%;
margin:0 auto;
min-height:100%;
width:872px;
}
#main {all.css (line 156)
height:inherit;
padding:32px 11px 0 12px;
}
ASKER
Thanks for working on this. Unfortunately, the issue is still there with the updated code. Very perplexing..
Bill
Bill
i am not getting exactly what you want can you please explain your needs.
When do you want the div to stretch
When do you want the div to stretch
ASKER
Here is a sceen shot showing what I am seeing:
http://stage2.daileydev.com/line_issue.gif
The divider line is part of the container DIV and it seems to end after the footer. What I need is for the container to reach the bottom of the browser window.
http://stage2.daileydev.com/line_issue.gif
The divider line is part of the container DIV and it seems to end after the footer. What I need is for the container to reach the bottom of the browser window.
how are you increasing the height and making the empty space.
It is working fine at my end in IE7, IE8, FF3
heightff.png
height.png
It is working fine at my end in IE7, IE8, FF3
heightff.png
height.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solution found.
so it worked at your end or not
The where are you facing the issue and in which browser. i can't find any issues with the height the container is expanding and the background line is also resizing with that.
Please be little more specific
Regards,
Amarjit