HTML CSS examples for CSS Layout:Width
Align 3 divs one div has fixed width
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .column {<!-- w w w . j ava 2 s .co m--> float:left } #div1 { background:Chartreuse; width:301px; float:left } #div2 { background:yellow; width:51%; float:left } #div3 { background:blue; width:51%; float:left } #footer { clear:both; } </style> </head> <body> <div id="container"> <div id="div2"> <div id="div1"> Col 1 </div> Col 2 </div> <div id="div3"> Col 3 </div> </div> <div id="footer"> Footer </div> </body> </html>