CSS two columns dynamic width - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

CSS two columns dynamic 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">

#lineContainer {<!--from   w w  w.java2  s.  c  om-->
   overflow: hidden; 
   outline: 1px solid red;
   width: 300px 
}
#lineLeft {
   overflow: hidden; 
   white-space: nowrap;
   background: #f0f
}
#lineRight {
   float: right;
   background: #ccc
}


      </style> 
 </head> 
 <body> 
  <div id="lineContainer"> 
   <div id="lineRight">
     right
   </div> 
   <div id="lineLeft">
     left
   </div> 
  </div>  
 </body>
</html>

Related Tutorials