CSS fluid two column and min-width - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

CSS fluid two column and min-width

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 {<!--   w  ww .j a v a2s.c  om-->
   min-width: 800px;
   height: 100%;
}
html {
   height: 100%;
}
div#left {
   background: #ccc;
   display: inline-block;
   width: 40%;
   min-width:300px;
   height: 100%;
}
div#right {
   background: #aaa;
   display: inline-block;
   width:60%;
   height: 100%;
}


      </style> 
 </head> 
 <body> 
  <div id="left">
    Left 
  </div> 
  <div id="right">
    Right 
  </div>  
 </body>
</html>

Related Tutorials