<!DOCTYPE html> <body> <div style="float:left; width:0; height:60px"></div> <div style="background: red; float: right; height: 50px; width: 20px; clear:left"></div> <div id="a" style="border-top: solid 0px;"> <div id="b" style="border: solid orange; float: left; clear: right; width: 100px; height: 100px; position: relative;"></div> </div> <div> asdf<br> asdf<br> asdf<br> asdf<br> asdf<br> asdf<br> asdf<br> asdf<br> </div>