HTML CSS examples for CSS Layout:Position
Z-index and positioning
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #topbar {<!--from www . j a v a 2 s. com--> width:100%; height:43px; margin:0; padding:0; background:Chartreuse; position:fixed; z-index:801; top:0; left:0; float:left; -webkit-box-shadow:0 9px 7px -7px yellow; -moz-box-shadow:0 9px 7px -7px blue; box-shadow:0 9px 7px -7px pink; position:absolute; } #top_blur { width:301px; margin:0 auto; height:71px; z-index:2; background-color:OrangeRed; background-repeat:no-repeat; position:relative; } .header { width:301px; margin:0 auto; position:relative; top:-61px; z-index:802; } </style> </head> <body> <div id="topbar"></div> <div id="top_blur"> Lorem </div> <div class="header"> Lorem ipsum do </div> </body> </html>