Get this CSS: Click to download the CSS file.
CSS code for this design. (Small Centre)
/* CSS styles */
body {
text-align:center;
color: #666666;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:1em;
}
h1,h2 {
color:#0033CC;
}
h1 {
font-size:1.8em;
}
h2 {
font-size:1.4em;
}
#main {
position:relative;
width:765px;
text-align:left;
margin:10% auto 2px auto;
background-color: #FFFFCC;
}
#header {
position:relative;
background-color:#FFFFFF;
text-align:center;
height:115px;
}
#header img {
position:relative;
border:0px;
}
#menu {
position:relative;
float:left;
height:30px;
width:98%;
padding:5px 2px;
margin:2px auto 2px auto;
border:1px solid black;
}
#content {
position:relative;
height:300px;
width:650px;
font-size:0.9em;
float:left;
padding:5px 5px 5px 0px;
margin:5px auto 5px auto;
border:0px dashed blue;
overflow:auto;
}
#bottom_nav {
position:relative;
text-align:center;
font-size:0.7em;
margin:0px 0px 5px 0px;
}
/*Button definitions */
#button_block {
position:relative;
background-color:transparent;
text-align: center;
font-size:0.8em;
font-weight:bold;
width: 90px;
float:left;
margin:20px 10px 0px 2px;
}
#button_block a {
position:relative;
background-color: #CCCCCC;
color:#FFFF00;
text-align: center;
height: 20px;
width: 100%;
display:block;
margin:2px auto 5px 0px;
padding:0px 0px 3px 0px;
}
#button_block a:link {
background-color: #999999;
border: 4px outset #CCCCCC;
display:block;
}
#button_block a:visited {
background-color: #999999;
border: 4px outset #CCCCCC;
}
#button_block a:hover {
text-decoration: underline;
color: #FFD700;
}
#button_block a:active {
background-color: #999999;
border: 4px inset #CCCCCC;
}
#button_block a:focus {
background-color: #999999;
border: 4px inset #CCCCCC;
}
/* end of buttons */
#footer {
position:relative;
text-align:center;
font-size:0.8em;
margin:0px auto;
border:0px dotted red;
}
#design {
position:relative;
width:75%;
margin:0px auto 20px auto;
}
#design img {
border:0px;
}
#design .w3cr{
float:right;
}
#design .w3cl{
float:left;
}
.top_block {
position:relative;
overflow:auto;
width:40%;
height:150px;
float:left;
padding:5px 2px;
margin:10px 0px 10px 5px;
border:1px dashed blue;
}
.clearing {
clear:both;
}
.para {
position:relative;
text-indent:15px;
font-size:1em;
padding:5px;
}
#crumbtrail {
position:relative;
float:left;
font-size:0.75em;
background-color: transparent;
text-decoration:none;
text-align:left;
z-index:20;
}
#crumbtrail a:link {
color:#0000FF;
}
#crumbtrail a:visited {
color:#0000FF;
}
#crumbtrail a:hover {
color:#FFFFFF;
background-color: #000000;
text-decoration:underline;
}
#crumbtrail a:active {
color:#0000FF;
}
HTML code for this design. (Small Centre)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>CSS Based Templates - C and S Design</title>
<meta http-equiv="Content-Type" content="text/html; _
charset=iso-8859-1"/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<link type="text/css" rel="stylesheet" _
href="style.css" />
</head>
<body>
<div id="main">
<div id="header"><a href="/"><img _
src="/images/logo/icon_header.gif" alt="SE Friendly _
Programming Logo"/></a></div><!-- header -->
<div id="button_block">
<a href="layout.asp" title="Page Templates Small _
Centre">Home</a>
<a href="about.asp" title="About _
Us">About</a>
<a href="contact.asp" title="Contact _
Us">Contact</a>
<a href="services.asp" title="Company _
Services">Services</a>
<a href="privacy.asp" title="Privacy _
Policy">Privacy</a>
<a href="overflow.asp" title="Demonstrate Content _
overflow">Overflow</a>
<a href="right.asp" title="Menu on _
Right">Menu Right</a>
</div>
<div id="content">
<br />
</div><!-- content -->
<div class="clearing"></div><!-- clearing _
-->
<div id="footer">
<div id="design">
<span style='font-size: .8em;color: #0000FF; font-family: Verdana, _
Arial, Helvetica, sans-serif;'>copyright © C and S Design 2004 _
</span><br />
<a href='http://validator.w3.org/check/referer'><img _
class='w3cl' src='/images/w3org/w3c_xhtml.gif' alt='Valid HTML 4.01!' _
/></a>
<a href='http://jigsaw.w3.org/css-validator/'><img _
class='w3cr' src='/images/w3org/w3ccss.gif' alt='Valid CSS!' _
/></a>
<a href='http://www.candsdesign.co.uk'>Website Design and SE _
Friendly Coding</a> C and S Design<br /><br />
</div><!--design-->
</div><!-- footer -->
</div>
<!-- main -->
</body>
</html>

