HTML CSS examples for CSS Layout:Layout
Center liquid layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- w w w . jav a2 s. c o m--> margin:0; padding:0; } body { background:Chartreuse; font:15px Arial, Helvetica, sans-serif; background-color:yellow; background-repeat:repeat; } .wrapper { width:91%; min-widht:201px; margin:0 auto; } .wrapper * { float:left; } .topbar { width:inherit; height:51px; background:blue; margin:0 auto; float:none; } </style> </head> <body> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Lor</title> <div class="wrapper"> <div class="topbar"> Lorem </div> </div> </body> </html>