I have this this code, http://jsfiddle.net/rnbcoder/WjzbH/
HTML :
<div class="mframes">
<div class="mframe" id="liveBand">
<div class="mframeDetails mfrDetSum" style="background-color: rgba(255,0,0,0.5);">
<p>Live Band Performance</p>
<p>Stay tuned for more details</p>
<div class="mframeBtn" id="leftmframeBtn" style="">Read More</div>
</div><div class="mframeDetails mfrDetFull" style="left:50%;background-color: green;">
<p>This is the main interesting blah blah </p>
</div>
</div><div class="mframe" id="dj">
<div class="mframeDetails mfrDetFull" style="left:0%;background-color: green;">
</div><div class="mframeDetails mfrDetSum" style="left:50%;background-color: rgba(255,0,0,0.5);">
<div class="mframeBtn" id="rightmframeBtn" style=""></div>
</div>
</div>
</div>
CSS :
.mframes{
position: absolute;
height:70%;
width:70%;
margin-top: -18%;
margin-left: -35%;
top: 50%;
left: 50%;
white-space: nowrap;
overflow: hidden;
}
.mframe{
margin: 0;
height: 100%;
width: 50%;
background-color: black;
overflow: hidden;
}
.mframeDetails{
position: absolute;
display: inline-block;
height: 100%;
width: 50%;
text-align: center;
}
.mframe
contains divs larger than itself. Its overflow style is set to hidden. Yet it can not trim its children.
What's wrong ?