Fluid and fixed column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Fluid and fixed column

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 {background-color: gray;}
#rightCol{<!--from ww w  .  j  ava2 s. co  m-->
   width: calc(100% - 400px);
}


      </style> 
 </head> 
 <body> 
  <div style="background-color:white; width: 400px;float:left;"> 
   <span class="status" id="active"></span> 
   <a href="" class="title">Title</a> 
   <a href="#" class="number">6</a> 
  </div> 
  <div id="rightCol" style="background-color: white; float:right;">
    Test test 
  </div>  
 </body>
</html>

Related Tutorials