HTML CSS examples for CSS Layout:Layout
CSS layout clear both affects the flow
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #left { float:left; width:201px; height:401px; background:Chartreuse; } #main {<!-- w ww .j a va2 s.c om--> margin-left:211px; background:yellow; height:401px; overflow:auto; } h1 { clear:both; } </style> </head> <body> <div id="left"></div> <div id="main"> <h1>Lore</h1> </div> </body> </html>