I want to make a standard frame with two divs
side by side.
.test {
width: 100%;
height: 100%;
}
.test22 {
width: 100px;
background-color: #000;
border: 1px solid #000;
height: 1000px;
}
<div class="test">
<div class="test22">
</div>
</div>
Here is a JSFiddle: https://jsfiddle.net/zvy0j3r1/
Now as you can see with a fixed height on 2nd div
I'm able to see the container with black bgcolor on the screen. But I cannot have a fixed height as the content is variable and hence I changed: height:100%
instead of fixed height.
When I do that, I don't see anything on the screen, except the border I added
JSFiddle: https://jsfiddle.net/zvy0j3r1/1/
If I add some content in it, it'll start showing up:
JSFiddle: https://jsfiddle.net/zvy0j3r1/2/
but I want to be able to see the black container always whether I have content or not with height: 100%
?
Is this possible?