CSS Layout extending wrapper - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

CSS Layout extending wrapper

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">
body {<!--from  ww w  .j  a v  a2  s  . c  o  m-->
   background-color:Chartreuse;
   min-height:100%;
}

header {
   background-color:yellow;
   width:100%;
   float:left;
}

nav {
   background-color:blue;
   border-radius:11px;
   height:76px;
   width:71%;
   margin:0 auto;
   margin-top:11px;
   margin-bottom:11px;
   border-radius:11px;
}

#topper {
   background-color:pink;
   height:176px;
}

.column {
   background-color:OrangeRed;
   float:left;
   margin-left:16px;
   margin-top:-21px;
   height:151px;
}

.clear {
   clear:both;
}
</style> 
 </head> 
 <body> 
  <header> 
   <nav></nav> 
  </header> 
  <main> 
   <div id="topper">
     Lorem ipsum dolor si 
   </div> 
   <div class="column">
     Lorem ipsum dolor si 
   </div> 
   <div class="column">
     Lorem ipsum dolor si 
   </div> 
   <div class="column">
     Lorem ipsum dolor sit 
   </div> 
   <div class="clear"></div> 
  </main> 
  <footer>
    Lorem ipsum dolor si 
  </footer>  
 </body>
</html>

Related Tutorials