I can't seem to get the green div's height to cover the red div by setting it to 100%. Other solutions I've tried like setting parent div heights to 100% haven't worked either. Can someone spot what's wrong with my code? Appreciate any help!
#sharing {
background: lightgreen;
width: 44%;
height: 100%;
float: left;
padding-right: 25px;
border-right: 2px solid yellow;
}
#newsletter {
background: lightblue;
width: 56%;
height: 100%;
float: left;
padding: 0 0 0 25px;
}
#footer-wrap {
width: 100%;
height: auto;
background: #00f;
margin: 0 auto 50px auto;
overflow: auto;
padding: 50px 0 0 0;
margin: 0;
}
.f1 {
display: block;
text-transform: uppercase;
color: darkblue;
font-size: 20px;
line-height: 1;
padding-bottom: 15px;
}
.f2 {}
.clear { clear: both; }
.stretched-container {
max-width: 960px;
height: auto;
background: #f00;
margin: 0 auto;
text-align: center;
}
<!-- BOOTSTRAP -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<footer id="footer-wrap">
<div class="stretched-container">
<div id="sharing">
<span class="f1">Share page</span>
<span class="f2">Lorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodare</span>
</div>
<div id="newsletter">
<span class="f1">Newsletter Signup</span>
<span class="f2">Lorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodareLorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodareLorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodareLorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodareLorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodareLorem ipsum dolor sit amet et delectus accommodare... Lorem ipsum dolor sit amet et delectus accommodare</span>
</div>
<div class="clear"></div>
</div>
</footer>