Friday 13 January 2012

CSS Cascading Style Sheet for your HTML Page or Master Page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>master page</title>
<style type="text/css">
#container{
 width:1000px;
 height:auto;
 margin:auto;
}
#header
{
 height:150px;
 width:auto;
 background-color:#33CCCC;
}
#logo
{
 width:150px;
 float:left;
 margin:5px;
 background-color:#006699;
 height:140px;
}
#slogan
{
 width:200px;
 height:140px;
 margin:5px;
 float:right;
 background-color:#33CC33;
}
#leftsidebar
{
 width:200px;
 height:600px;
 background-color:#3366CC;
 float:left;
}
#main
{
width:800px;
float:left;
 height:600px;
 background-color:#003399;
}
#footer
{
clear:both;
 height:50px;
 background-color:#6600CC;
 width:1000px;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<div id="logo"></div>
<div id="slogan"></div>
</div>
<div id="leftsidebar"></div>
<div id="main"></div>
<div id="footer"></div>
</div>
</body>
</html>

No comments:

Post a Comment