HTML CSS examples for CSS Layout:Responsive Layout
create a 3 column responsive design with column 1 as optional and column 3 with minimum width
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- w ww . j a v a2s.c om--> -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } #page { display:table; width:100%; } #page .col { display:table-cell; vertical-align:top; padding:21px; } #left { width:151px; background:Chartreuse; } #middle { width:auto; background:yellow; } #right { width:346px; background:blue; } </style> </head> <body> <div id="page"> <div class="col" id="left"> Lorem ips </div> <div class="col" id="middle"> Lorem ips </div> <div class="col" id="right"> Lorem ips </div> </div> </body> </html>