Looking for some insight on how to get this navigation centered in the header. As I’ve been told it’s not the best to place it within a div.
I’m banging my head on a wall trying to do this, I swear every time I do a layout the navbar gives me the most trouble. (Ignore ghetto rigged logo)
Thanks in advanced,
Chris
<!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>Untitled Document</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
body {
font-family:Euphemia, Times, serif;
color: #353535;
background-image: url(images/bg.jpg);
}
#header {
width: 100%;
height: 145px;
background-color: #353535;
}
#logo {
width: 485px;
height: 56px;
background-image: url(images/logo.png);
}
#logoHolder {
margin-right: auto;
margin-left: auto;
width: 940px;
height: 40px;
padding-top: 40px;
}
#nav li {
list-style-type: none;
display: inline;
padding-right: 20px;
}
a:link {
color: #e4e4e4;
text-decoration: none;
font-size: 17pt;
font-weight: bold;
}
a:hover {
color: #ffc000;
}
</style>
</head>
<body>
<div id="header"> <!-- Begin Header Div -->
<div id="logoHolder"><div id="logo"></div></div> <!-- End Logo Div and div Holder -->
<ul id="nav">
<li><a href="#">home</a></li>
<li><a href="#">about</a></li>
<li><a href="#">blog</a></li>
<li><a href="#">contact</a></li>
<li><a href="#">hire me</a></li>
<li><a href="#">portfolio</a></li>
</ul>
</div> <!-- End HEADER Div -->
</body>
</html>