Specify table cell using both % AND px - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Specify table cell using both % AND px

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">
.box {<!-- w w  w  .j a v  a 2  s  .  c om-->
   display:-webkit-box;
   display:-moz-box;
}

.flex {
   -webkit-box-flex:2;
   -moz-box-flex:2;
   background-color:Chartreuse;
}

div.fixed {
   width:51px;
   background-color:yellow;
}

div>div {
   color:blue;
   padding:31px 0;
   text-align:center;
   font-family:Arial;
}
</style> 
 </head> 
 <body> 
  <div class="box"> 
   <div class="flex">
     Lorem ipsum 
   </div> 
   <div class="flex">
     Lorem ipsum 
   </div> 
   <div class="fixed">
     Lorem ipsum 
   </div> 
   <div class="fixed">
     Lorem ipsum 
   </div> 
   <div class="fixed">
     Lorem ipsum 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials