HTML CSS examples for CSS Layout:Position
change the position of 3 div's to be side by side
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .divpull {<!-- www . j av a 2 s . c o m--> float:left; } .div_header { background:red; width:100%; height:51px; } #div_left { background:green; width:201px; height:501px; } #div_main { background:gray; width:301px; height:401px; } #div_right { background:blue; width:201px; height:501px; } </style> </head> <body> <div class="div_header" id="div_header"></div> <div class="divpull" id="div_left"></div> <div class="divpull" id="div_main"></div> <div class="divpull" id="div_right"></div> </body> </html>