<!DOCTYPE html> <body onload="document.getElementById('a').style.borderTopWidth=0;"> <div style="float:right; height: 50px; width: 20px; background: red"></div> <div id=a style="border-top: solid 50px"> <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> </div>