CSS Background Container Set-up

This below CSS stylesheet is to set the Background container and to handle all the DIV elements of a web page. The container class is the CSS class that can be set by the desired color

CSS Container Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<title>CSS Background Setup</title>
<style type="text/css">
width: 850px;
height: 700px;
background: green;
.smallbox {
float: left;
overflow: auto;
visibility: visible;
width: auto;
height: auto;
padding: 25px;
background: blue;

.top {
float: center;
right: 150px;

background: grey;
<div class="container">
<div class="top">this is a example<br>
this is a example<br> this is a example <br>
this is a example </div>
<div class="smallbox">this is a example</div>

Related Topic Struts 1 vs Struts2 Difference Performance
Div Tag Horizontal and Vertical Alignment
CSS Background Color Transparent
CSS DIV Table Decoration
What is OSI Model and its Layers in Communication System
CSS  web design  HTML  div  

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback