HTML CSS examples for CSS Property:background-color
Background color showing in wrapper
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .my {<!--from www. jav a2s .c om--> width: 100%; margin: auto; background: #ccc; overflow:auto; } #bottom-left { float: left; width: 490px;; background: blue; height: 300px; } #bottom-right { float: right; width: 490px;; background: yellow; height: 300px; } .clear:after { clear: both; } </style> </head> <body> <div class="my clear"> <div id="bottom-left"> bottom-left </div> <div id="bottom-right"> bottom-right </div> </div> </body> </html>