<html> <head> <script> function boom() { document.getElementById("a").style.clear = "right"; } </script> </head> <body onload="boom();"> <div style="display: table;"> <div id="a">a</div> <div id="b" style="height: 18000000px;">b</div> <div id="c">c c c</div> </div> </body> </html>