I have a simple problem, but seemingly I'm not that smart :/ And I'm in a bit of a rush also! I went thru other answers and tried several options, I cannot find solution thou. I do apologize if this is trivial, I am a noob...
Description: This is a left-align website. Link here: http://goo.gl/LrzYy7
I have one DIV (id="leftwrap") that is on left and one DIV (id="content") that floats to the right of it. In "Leftwrap" I have two DIV on top of each other. The bottom one (id="header_bottom") has "height:100vm" so that it extends according to content in "Content" DIV. At least that's the idea.
But...for some reason it just...extends to whatever height it feels it's good. Or something like that :/
This is HTML:
<body>
<div id="mainwrap">
<div id="leftwrap">
<div id="header"><img src="img/leftbar.jpg" width="270" height="929" alt="Left Column" /></div>
<div id="header_bottom"></div>
</div>
<div id="content"><img src="img/rightcontent.jpg" width="675" height="770" alt="Right Content" /></div>
</div>
</body>
and this is CSS
body, div, img {margin:0; padding:0; }
body {
position: absolute;
top: 0;
left: 0;
background: #f0f0f0;
}
/*MAIN DIVS AND CONTENT*/
#mainwrap {
position: absolute;
top: 0;
left: 0;
width: 945px;
}
#leftwrap {
width: 270px;
float: left;
}
#header {
width: 270px;
height: 929px;
}
#header_bottom {
width: 270px;
height:100vh;
background: #d8991c;
}
#content
{
position: absolute;
top: 0;
left: 270px;
float: right;
}
I know it's kinda messy (I bet it can be coded simpler but I had hard time to make it float correctly).
Is there a problem due to not specifying height or something?
Thanks