Two inline table cell DIVs - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Two inline table cell DIVs

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">
#wrap {<!--  w ww.  j a  v  a  2  s . c  o m-->
   width:100%;
   height:401px;
   display:inline-table;
}

#lb {
   width:72.6%;
   display:table-cell;
   vertical-align:top;
}

#rb {
   display:table-cell;
   width:29.6%;
   padding:31px 7px 8px 7px;
   border-left:2px solid Chartreuse;
   border-right:2px solid yellow;
}
</style> 
 </head> 
 <body> 
  <div id="wrap"> 
   <div id="lb">
     Lorem ips 
   </div> 
   <div id="rb">
     Lorem ips 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials