Layout exercises
<style>
*
{
margin:0px;
padding:0px;}
Body
{
min-width:1000px;}
#a
{
width:100%;
height:100px;
Background-color: #006;
top:0px;
left:0px;
position:fixed; z-index:9999;}
#b
{
width:100%;
height:450px;
Background-color: #CCC;
position:relative;
top:100px;
}
#c
{
width:100%;
height:500px;
Background-color: #0FF;
Position:relative;}
#d
{
width:100%;
height:100px;
Background-color: #F00;
Position:relative;}
#e
{
width:100%;
height:450px;
Background-color: #F0F;
Position:relative;}
#f
{
width:100%;
height:300px;
Background-color: #333;
Position:relative;}
#g
{
width:100%;
height:400px;
Background-color: #FF0;
Position:relative;}
#h
{
width:100%;
height:300px;
Background-color: #390;
Position:relative;}
#a1
{
width:40%;
height:80px;
Background-color: #0F0;
position:relative;
top:10px;
left:100px;}
#a2
{
width:30%;
height:40px;
Background-color: #0F0;
Position:absolute;
top:5px;
right:100px;}
. a3
{
width:7%;
height:40px;
Background-color: #0F0;
margin-left:2%;
bottom:10px;
right:40%;
Position:absolute;
Float:left
}
. a4
{
width:7%;
height:40px;
Background-color: #0F0;
margin-left:2%;
bottom:10px;
right:30%;
Position:absolute;
Float:left
}
. a5
{
width:7%;
height:40px;
Background-color: #0F0;
margin-left:2%;
bottom:10px;
right:20%;
Position:absolute;
Float:left
}
. a6
{
width:7%;
height:40px;
Background-color: #0F0;
margin-left:2%;
bottom:10px;
right:10%;
Position:absolute;
Float:left
}
#c1
{
width:30%;
height:200px;
Background-color: #FF0;
Float:left;
margin-left:2%;
margin-top:40px;
}
#e1
{
width:30%;
height:430px;
Background-color: #C63;
Position:absolute;
right:10%;
top:10px;
}
#ee
{
width:60%;
height:430px;
Background-color: #F00;
Position:absolute;
left:50px;
top:10px;
}
. E2
{
width:25%;
height:100px;
Background-color: #C63;
Float:left;
margin:3%;
}
. G1
{
width:20%;
height:360px;
Background-color: #00F;
Float:left;
margin:2%;
}
#h1
{
width:20%;
height:200px;
top:20px;
margin-left:5%;
Background-color: #F00;
position:relative;
}
%hu
{
width:20%;
height:200px;
top:20px;
margin-left:4%;
left:65%;
Background-color: #F00;
Position:absolute;
}
#h2
{
width:40%;
height:200px;
top:20px;
left:25%;
margin-left:2%;
Background-color: #F00;
Position:absolute;
}
#h4
{
width:60%;
height:50px;
Background-color: #F00;
Position:absolute;
bottom:10px;
left:5%;
}
</style>
<body>
<div id= "A" ><div id= "A1" ></div><div id= "A2" ></div><div class= "A3" ></div> <div class= "A4" ></div><div class= "A5" ></div><div class= "A6" ></div></div >
<div id= "B" ></div>
<div id= "C" ><div id= "C1" ></div><div id= "C1" ></div><div id= "C1" ></div> <div id= "C1" ></div><div id= "C1" ></div><div id= "C1" ></div></div>
<div id= "D" ></div>
<div id= "E" ><div id= "E1" ></div><div id= "ee" ><div class= "E2" ></div><div class = "E2" ></div><div class= "E2" ></div><div class= "E2" ></div><div class= "E2" > </div><div class= "E2" ></div><div class= "E2" ></div><div class= "E2" ></div ><div class= "E2" ></div></div></div>
<div id= "F" ></div>
<div id= "G" ><div class= "G1" ></div><div class= "G1" ></div><div class= "G1" ></ Div><div class= "G1" ></div></div>
<div id= "h" ><div id= "H1" ></div><div id= "H2" ></div><div id= "H3" ></div> <div id= "H4" ></div></div>
</body>
CSS style sheets and layouts