To have Horizontal white space on display table and table-cell divs - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

To have Horizontal white space on display table and 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">
#main_contents_cage {<!--from w ww.  ja va  2 s . c  o  m-->
   display:table;
}

#main_contents_left, #main_contents_right {
   display:table-cell;
}

#main_contents_left {
   width:743px;
}

#main_contents_right {
   width:247px;
   border-left:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div id="main_contents_cage"> 
   <div id="main_contents_left">
     Lorem ipsum dolor sit 
   </div> 
   <div id="main_contents_right">
     Lorem ipsum dolor sit amet, 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials