HTML CSS examples for CSS Layout:2 Column
Two column layout with background color
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w w w .j a v a2s . co m--> background-color: #000; } </style> </head> <body> <div style="background-color:#FFFFFF; overflow:hidden"> Its showing here only white color <div style="width:250px; float:left; padding:10px;"> <p>hello its sam </p> <p>hello its sam </p> <p>hello its sam </p> <p>hello its sam </p> <p>hello its sam </p> </div> <div style="width:660px; border-left: 1px solid #CCC; padding:10px; float:right;"> <p>Yes its sam</p> <p>Yes its sam</p> <p>Yes its sam</p> <p>Yes its sam</p> <p>Yes its sam</p> </div> </div> </body> </html>