And as promised (after an unwanted trip to the emergency room, mind you) here's my example (please forgive the ugly color combination, it is just an example afterall--and no, that's NOT what sent me to the ER last night):
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="keywords" content="Page-specific, keywords, go, here" />
<meta name="description" content="A description of the page goes here." />
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
background-color: #FFF;
color: #000;
}
h1 {
background-color: #F00;
color: #FFF;
padding: 0.2em 0; /* padding is used when you want to "pad" an element, class or ID. Think of it as a protective layer, like the padding that American-style football players wear to protect themselves from injury */
text-indent: 1em; /*if just indenting text, use text-indent instead of padding */
}
#menu {
background-color: #0F0;
color: #FF0;
float: left;
list-style: none;
width: 10em;
}
#menu a, #menu a:link, #menu a:visited {
background-color: #0F0;
color: #F00;
display: block;
text-align: center;
text-decoration: none;
width: 100%;
}
#menu a:hover {
background-color: #00F;
color: #FFF;
}
#content {
background-color: #555;
color: #FFF;
margin-left: 10em;
padding: 0.25em 0;
}
.section {
border: 1px solid #FFF;
margin: 1em;
}
h2 {
background-color: #F0F;
color: #000;
font-size: 1em;
padding: 0.1em 0.5em;
}
.section p {
background-color: #999;
color: #FFF;
padding: 0.1em 0.5em;
}
#footer {
background-color: #00F;
clear: left;
color: #FFF;
padding: 1em;
text-align: center;
}
</style>
</head>
<body>
<h1>Web Page Title</h1>
<ul id="menu">
<li><a href="">Menu Link</a></li>
<li><a href="">Menu Link</a></li>
<li><a href="">Menu Link</a></li>
<li><a href="">Menu Link</a></li>
</ul>
<div id="content">
<div class="section">
<h2>Content Header</h2>
<p>Lorem ipsum dolar sit emit...</p>
</div>
<div class="section">
<h2>Content Header</h2>
<p>Lorem ipsum dolar sit emit...</p>
</div>
<div class="section">
<h2>Content Header</h2>
<p>Lorem ipsum dolar sit emit...</p>
</div>
</div>
<div id="footer">
<p>Copyright © Me, Myself, and I. All Rights Reserved, suckas.</p>
</div>
</body>
</html>
Bookmarks