CSS Positioning Two Column Div Layout with Two fixed top DIVs - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

CSS Positioning Two Column Div Layout with Two fixed top DIVs

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> 
  <style>

.CMS-Admin-Bar{<!--from w w w. j  a va 2 s . c  om-->
   background: red;
   position:fixed;
   height:43px;
   left:0;
   top:0;
   width:100%;
   z-index:10;
}
.total-wrapper{
   position: relative;
   top: 43px;
}
.left-pane{
   background: orange;
   position: absolute;
   top:0;
   left:0;
   height:100%;
   width:283px;
   z-index:8;
}
.right-pane{
   position:fixed;
   top:43px;
   left:283px;
   right:0;
   overflow:auto;
}
.Function-Pane{
   height: 60px;
   position:fixed;
   z-index:8;
   top:43px;
   left:283px;
}
.Content-Pane{
   position: fixed;
   top: 60px;
}


      </style> 
 </head> 
 <body translate="no"> 
  <div class="CMS-Admin-Bar">
    Admin Bar 
  </div> 
  <div class="total-wrapper"> 
   <div class="left-pane"> 
    <div class="menu-pane">
      Menu Pane 
    </div> 
   </div> 
   <div class="right-pane"> 
    <div class="Function-Pane">
      Function Pane 
    </div> 
    <div class="Content-Pane"> 
     <p>this is a test this is a test this is a test this is a test this is a test this is a test 
     this is a test this is a test this is a test this is a test this is a test 
     this is a test this is a test this is a test this is a test this is a test this is a test 
     this is a test this is a test this is a test this is a test this is a test this is a test 
     this is a test this is a test this is a test this is a test this is a test this is a test 
     this is a test this is a test this is a test this is a test this is a test this is a test </p> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials