logo 2 Column Right Menu Code


HTML

<!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">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>2 Column Right</title>
<link href="styles.css" type="text/css" media="screen" rel="stylesheet" />
<style type="text/css">
</style>
</head>
<body>
<div id="outer">
<div id="header"><h2>Header</h2>

</div>
<div id="menu"><h4>Menu</h4>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 7</a></li>
<li><a href="#">Link 8</a></li>
</ul>
</div>

<div id="main"><!--main contains: right column & content-->

<div id="content"><h4>Content</h4>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </p>
<p>
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>

</div>
<div id="lt_col"><h4>right Column</h4>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 7</a></li>
<li><a href="#">Link 8</a></li>
</ul>

</div>

</div>
</div><!--End Outer-->
<div id="footer"><h4>Footer</h4>
<p>
<a href="#">Link 1</a> |
<a href="#">Link 2</a> |
<a href="#">Link 3</a> |
<a href="#">Link 4</a> |
<a href="#">Link 5</a> |
<a href="#">Link 6</a> |
<a href="#">Link 7</a>
</p>
<p>Content © Company A | Site Design and Hosting by <a href="http://cat5designs.com">Category 5 Web Designs</a></p>
</div>
<div id="sub_footer"><h4>Sub Footer</h4>
<p>Content © Company A | Site Design and Hosting by <a href="http://cat5designs.com">Category 5 Web Designs</a></p>
</div>
</body>
</html>

CSS

* {margin:0;padding:0}

html,body {background:#eee;color:#000; margin:0 auto;font-size: 10pt;font-family: verdana,tahoma,helvetica,"Lucida Sans", Arial;line-height:120%;}

/* MSIE display:inline-block is to make sure MSIE doesn't paint the backround above the containers, the overflow declaration is to make sure the containers do not drop below siblings if content pushes the width (in modern browsers it doesn't drop, but it spawns an orizontal scrollbar) */

#header,#menu,#content,#rt_col,#footer,#sub_footer {overflow:hidden;display:inline-block}

/* safari and opera need this */
#header,#menu,#footer,#sub_footer {width:100%}
#header,#menu,#content,#rt_col,#footer,#sub_footer {padding:10px 0;font-size:.9em}
#outer {width:800px;margin:auto;background:#aaa}
#header {background:#fcc}
#main {margin:auto; Width: 100%;background:#9cf url(images/bg.jpg) repeat-y 0% 0;}
#content div {margin:10px}
#content {background:#9cf;width:80%}
#content,#rt_col {float:left}
#rt_col {background:#ffc;width:19.9%}
#rt_col div {text-align:center}
#menu {background:#dcd}
#footer {clear:left;width:800px;background:#ccf;text-align:center;margin:auto;}
#sub_footer {text-align:center;margin:auto;}

p {margin:10px 10px}
h2 {margin:10px 10px;}
h4 {margin:20px 10px;}

#menu ul {margin:10px}
#menu ul li {margin-right:9px;list-style:none;display:inline}
#rt_col ul {margin:10px}
#rt_col ul li {margin:10px;list-style:none;display:block}