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