Left:0; full stretch without absolute positioning - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Left:0; full stretch without absolute positioning

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
html, body, div {
   width:100%;
   height:100%;
}

html, body {
   margin:0;
   padding:0;
}

div {<!-- w  ww .  j ava 2 s .  c om-->
   background:blue;
}
</style> 
 </head> 
 <body> 
  <div></div>  
 </body>
</html>

Related Tutorials