Look at the fiddle above.
In most cases, a floating element remains inside its parent element.
However, in this case it is not behaving as expected and I am unsure why.
I am trying to get the blue floating div to move into its parent green div.
Any idea why this floating div is not staying within the boundaries of its parent?
Shown below is an example code ( http://jsfiddle.net/hL8tvet8/ )
HTML :
<div class="header">
<div class="left"></div>
<div class="float_R"></div>
</div>
CSS :
.header {width: 200px; background-color: green;}
.left {width:50px; height: 50px; background-color: red;}
.float_R {width:50px; height: 50px; background-color: blue; float:right;}