I have these 2 images on the left and some information about the 2 images on the right. Only problem is that the section on the right won't respons to height:100%;
. So what I want is to have the lightblue section expand to the bottom of the grey area. Can anybody tell me what I'm doing wrong?
I don't want to work with positions. I've tried that approach but that made the rest of the page a lot worse.
#main{
float:left;
width:100%;
padding:75px 0 55px 0;
background-color:#999;
}
.contentpage img{
display:block;
margin-bottom:40px;
}
#leftsection{
width:50%;
float:left;
}
#leftcontent{
width:480px;
float:right;
}
#leftcontent img{
background:red;
height:453px;
width:453px;
}
#rightsection{
width: -moz-calc(50% - 150px);
width: -webkit-calc(50% - 150px);
width: calc(50% - 150px);
margin:-75px 0 0 150px;
padding-bottom:20px;
height:100%;
float:left;
background-color:#f3f5f7;
}
#rightsection > #rightcontent{
padding:85px 0 20px 35px;
max-width:330px;
}
#rightcontent{
width:auto;
float:left;
}
<div id="main" class="contentpage">
<div id="leftsection">
<div id="leftcontent">
<div id="breadcrumbs">Bread / crumbs</div>
<img src="images/afbeelding1.png"/>
<img src="images/afbeelding2.png"/>
</div>
</div>
<div id="rightsection">
<div id="rightcontent">
<h1>Title</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Lorem ipsum dolor sit amet.</p>
<h2>Thins:</h2>
<ul>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ul>
</div>
</div>
</div>