This is how basically document looks like:
<body>
<div id="content_holder">
<div class='all_links'>
</div>
<div class="item">
<div class="notice"></div>
</div>
</div>
<div id="bottom_nav">
</div>
</body>
And CSS:
html, body {
margin: 0;
padding: 0;
min-height: 100%;
}
body{
overflow-y:scroll;
min-width: 1024px;
}
#content_holder{
min-height: 100%;
}
.item {
width: 800px;
position: relative;
top: 100px;
left: 50%;
margin-left: -400px;
text-align: center;
min-height: 100%;
}
The problem that on this specific page html, body, .item
properties about min-height doesn't work in percents.
On other pages everything is OK. Parent of .item
is body. I can't get what is wrong here.
When I check height with Chrome Dev Tool, body height on this page is 360px, which, of course, twice less than it shoudl be.
Why?
UPD: fiddle
What I've found out, that height property doesn't work specifically for #content_holder
, and works for body