HTML CSS examples for CSS Layout:Layout
Fluid layout with three columns
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { width:100% } .green {<!-- w w w.j ava 2 s . co m--> width:calc((100% - 401px)/3); height:201px; background:green; float:left; } .red { width:401px; height:201px; background:red; float:left; } .lilac { width:calc((100% - 401px)/3); height:201px; background:lavender; float:left; } </style> </head> <body> <div class="green"></div> <div class="red"></div> <div class="lilac"></div> </body> </html>