I am attempting to place a "Text overlay goes here" over the profilepic.jpg image below. I believe there may be an issue with my CSS code. My approach was to create a new div class named overlay and embed that line within the imgcontainer class. Can someone pinpoint where I may be going wrong?
HTML
<div id="timeline">
<div class="block2x3 block">
<div class="imgcontainer">
<img src="profilepic.jpg" />
<p><div class="overlay">Text Overlay Goes Here</div></p>
</div>
<div class="commentcontainer">
<div class="peoples">
<a href="#"><strong class="peoplename">Joe Schmo</strong></a> and <a href="#">42 other people bought this</a>
<p>Have commented on your <a href="#">wall post</a></p>
</div>
</div>
</div>
CSS
#timeline div[class*="block2x3"] .imgcontainer {height:66.6%;}
#timeline div[class*="block2x3"] .commentcontainer {height: 33.4%;;}
#overlay{
float: top;
background: rgba(0,0,0,.7);
}