HTML CSS examples for CSS Widget:Table Cell
Specify table cell using both % AND px
<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>