I've been trying to figure out the best way to fix this problem for the past half day. I fixed some other issues with the image, but now I can't get it to be centered like the header image above it with the words on the gray line. I want to have the navigation image bar, which is the tabsLeft, tabsCenter, tabsRight, etc. to center just like it's image place holder above it. Any ideas? I've included the css, html, and an screenshot of the site for reference.
CSS File -> Style.css
/********************************************
HTML ELEMENTS
********************************************/
/* top elements */
* { padding: 0; margin: 0; }
body {
margin: 0; padding: 0;
font: normal .72em/1.5em 'Trebuchet MS', sans-serif;
color: #ffffff;
background: #000000 url(bg2.jpg) repeat-x;
text-align: center;
height: 100%;
}
/* links */
a { background: inherit; color: #fa8d00; }
a:hover { background: inherit; color: #006699; }
/* headers */
h1, h2, h3 {
font: bold 1em 'Trebuchet MS', Tahoma, Sans-serif;
color: #fa8d00;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; text-transform: uppercase;}
h3 { font-size: 1.2em; }
p, h1, h2, h3 {
margin: 10px 15px;
}
ul, ol {
margin: 10px 30px;
padding: 0 15px;
color: #fa8d00;
}
ul span, ol span {
color: #fff;
}
/* images */
img {
border: 2px solid #fa8d00;
}
img.float-right {
margin: 5px 0px 5px 15px;
}
img.float-left {
margin: 5px 15px 5px 0px;
}
a img {
border: 2px solid #fa8d00; /* #32CD32; */
}
a:hover img {
border: 2px solid #806B4D !important; /* IE fix*/
border: 2px solid #72A545; /* #32CD32; */
}
code {
margin: 5px 0;
padding: 10px;
text-align: left;
display: block;
overflow: auto;
font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace;
/* white-space: pre; */
background: #7c7c7c;
border: 1px solid #fa8d00;
}
acronym {
cursor: help;
border-bottom: 1px solid #777;
}
blockquote {
margin: 15px; padding: 0 0 0 20px;
background-color: #7c7c7c;
background-position: 8px 10px;
border: 1px solid #fa8d00;
font: bold 1.2em/1.5em "Trebuchet MS", Tahoma, sans-serif;
color: #fff;
}
/* form elements */
form {
margin:10px; padding: 0;
border: 1px solid #fa8d00;
background-color: #b4b4b4;
}
label {
display:block;
font-weight:bold;
margin:5px 0;
}
input {
padding: 2px;
border:1px solid #eee;
font: normal 1em "Trebuchet MS", Tahoma, sans-serif;
color:#777;
}
textarea {
width:400px;
padding:2px;
font: normal 1em "Trebuchet MS", Tahoma, sans-serif;
border:1px solid #fa8d00;
height:100px;
display:block;
color:#fff;
}
input.button {
margin: 0;
font: bold 1em Arial, Sans-serif;
border: 1px solid #fa8d00;
background: #7c7c7c;
padding: 2px 3px;
color: #333;
}
/* search form */
.searchform {
background-color: transparent;
border: none; margin: 0; padding: 0;
}
.searchform p { margin: 10px; padding: 0; }
.searchform input.textbox {
width: 130px;
color: #333;
height: 20px;
padding: 2px;
vertical-align: top;
}
.searchform input.button {
font: bold 12px Arial, Sans-serif;
color: #fa8d00;
width: 60px;
height: 26px;
border: none;
padding: 3px 5px;
vertical-align: top;
}
/***********************
LAYOUT
************************/
#header-content, #content, #footer-content {
width: 760px;
}
/* header */
#header {
height: 100px;
text-align: left;
}
#header-content {
position: relative;
margin: 0 auto; padding: 0;
}
#header-content #logo {
position: absolute;
font: bold 4em 'Trebuchet Ms', Sans-serif;
letter-spacing: -2px;
color: #000;
margin: 0; padding: 0;
/* change the values of left and top to adjust the position of the logo */
top: 0; left: 0px;
}
#header-content #slogan {
position: absolute;
font: bold 1.1em 'Trebuchet Ms', Sans-serif;
text-transform: none;
color: #FFF;
margin: 0; padding: 0;
/* change the values of left and top to adjust the position of the slogan */
top: 55px; left: 40px;
}
/* header menu */
#header-content ul {
position: absolute;
right: -5px; top: 15px;
font: bolder 1.3em 'Trebuchet MS', sans-serif;
color: #FFF;
list-style: none;
margin: 0; padding: 0;
}
#header-content li {
display: inline;
}
#header-content li a {
float: left;
display: block;
padding: 3px 12px;
color: #FFF;
background-color: #333;
text-decoration: none;
border-right: 1px solid #272727;
}
#header-content li a:hover {
background: #65944A;
color: #FFF;
}
#header-content li a#current {
background: #65944A;
color: #FFF;
}
/* header photo */
.headerphoto {
margin: 0 auto;
width: 900px;
height: 127px;
padding: 0px 0px 0px 0px;
background: #FFF url(gigaheader.jpg) no-repeat center;
}
#overall {
text-align: center;
margin: 0 auto;
padding: 0;
}
/* content */
#content-wrap {
clear: both;
float: left;
width: 100%;
}
#content {
text-align: left;
padding: 0;
margin: 0 auto;
}
/* sidebar */
#sidebar {
float: right;
width: 30%;
margin: 0 0 10px 0; padding: 0;
}
#sidebar h1 {
padding: 10px 0px 5px 10px;
margin: 0;
}
.sidebox {
background: #7c7c7c;
border: 1px solid #fa8d00;
margin-bottom: 10px;
}
/* sidebar menu */
#sidebar ul.sidemenu {
list-style:none;
margin: 10px 0;
padding: 0;
background: #7c7c7c;
}
#sidebar ul.sidemenu li {
padding: 0px 10px;
}
#sidebar ul.sidemenu a {
display:block;
font-weight:normal;
color: #fa8d00;
height: 1.5em;
padding:.3em 0 .3em 15px;
line-height: 1.5em;
border-bottom: 1px dashed #CCC;
text-decoration:none;
}
#sidebar ul.sidemenu a.top{
border-top: 1px dashed #CCC;
}
#sidebar ul.sidemenu a:hover {
padding: .3em 0 .3em 10px;
border-left: 5px solid #fa8d00;
color: #006699;
}
/* main */
#main {
float: left;
width: 68%;
margin: 0 0 10px 0; padding: 0;
}
#main h1 {
padding: 10px 0 5px 5px;
margin: 0 0 0 10px;
border-bottom: 1px solid #7c7c7c;
}
.post {
margin: 0; padding: 0;
background: #7c7c7c;
border: 1px solid #fa8d00;
}
.post .post-footer {
background-color: #7c7c7c;
border: 1px solid #7c7c7c;
padding: 5px; margin-top: 20px;
font-size: 95%;
}
.post .post-footer .date {
background: url('clock.gif') no-repeat 0 center;
padding-left: 20px; margin: 0 10px 0 5px;
}
.post .post-footer .comments {
background: url('comment.gif') no-repeat 0 center;
padding-left: 20px; margin: 0 10px 0 5px;
}
.post .post-footer .readmore {
background: url('page.gif') no-repeat 0 center;
padding-left: 20px; margin: 0 10px 0 5px;
}
/* footer */
#footer {
clear: both;
margin: 0; padding: 0;
font: normal .95em/1.5em 'Trebuchet MS', Tahoma, Arial, sans-serif;
text-align: left;
}
#footer h3, #footer p {
margin-left: 0;
}
#footer-content {
border-top: 1px solid #EAEAEA;
margin: 0 auto;
padding-left: 15px;
}
#footer-content a {
text-decoration: none;
color: #777;
}
#footer-content a:hover {
text-decoration: underline;
color: #333;
}
#footer-content ul {
list-style: none;
margin: 0; padding: 0;
}
#footer-content .col {
width: 32%;
padding: 0 5px 30px 0;
}
#footer-content .col2 {
width: 33%;
padding: 0 0 30px 0;
}
/* alignment classes */
.float-left { float: left; }
.float-right { float: right; }
.align-left { text-align: left; }
.align-right { text-align: right; }
/* additional classes */
.clear { clear: both; }
.gray { color: #BFBFBF; }
/* Navigation tabs*/
/*- Menu Tabs Left--------------------------- */
#tabsLeft {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsLeft ul {
margin:0 auto;
padding:0px 0px 0px 80px;
list-style:none;
}
#tabsLeft li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsLeft a {
float:left;
background:url("TabSide.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsLeft a span {
float:left;
display:block;
background:url("TabSide.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsLeft a span {float:none;}
/* End IE5-Mac hack */
#tabsLeft a:hover span {
color:#000;
}
#tabsLeft a:hover {
background-position:0% -22px;
}
#tabsLeft a:hover span {
background-position:100% -22px;
}
/*- Menu Tabs Left 2--------------------------- */
#tabsLeft2 {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsLeft2 ul {
margin:0 auto;
padding:0px 0px 0px 0px;
list-style:none;
}
#tabsLeft2 li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsLeft2 a {
float:left;
background:url("TabSpan.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsLeft2 a span {
float:left;
display:block;
background:url("TabSpan.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsLeft2 a span {float:none;}
/* End IE5-Mac hack */
#tabsLeft2 a:hover span {
color:#000;
}
#tabsLeft2 a:hover {
background-position:0% -22px;
}
#tabsLeft2 a:hover span {
background-position:100% -22px;
}
/*- Menu Tabs Center--------------------------- */
#tabsCenter {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsCenter ul {
margin:0 auto;
padding:0px 0px 0px 80px;
list-style:none;
}
#tabsCenter li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsCenter a {
float:left;
background:url("TabSide.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsCenter a span {
float:left;
display:block;
background:url("TabSide.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsCenter a span {float:none;}
/* End IE5-Mac hack */
#tabsCenter a:hover span {
color:#000;
}
#tabsCenter a:hover {
background-position:0% -22px;
}
#tabsCenter a:hover span {
background-position:100% -22px;
}
/*- Menu Tabs Center 2--------------------------- */
#tabsCenter2 {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsCenter2 ul {
margin:0 auto;
padding:0px 80px 0px 0px;
list-style:none;
}
#tabsCenter2 li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsCenter2 a {
float:left;
background:url("TabSpan.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsCenter2 a span {
float:left;
display:block;
background:url("TabSpan.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsCenter2 a span {float:none;}
/* End IE5-Mac hack */
#tabsCenter2 a:hover span {
color:#000;
}
#tabsCenter2 a:hover {
background-position:0% -22px;
}
#tabsCenter2 a:hover span {
background-position:100% -22px;
}
/*- Menu Tabs Right--------------------------- */
#tabsRight {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsRight ul {
margin:0 auto;
padding:0px 0px 0px 80px;
list-style:none;
}
#tabsRight li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsRight a {
float:left;
background:url("TabSide.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsRight a span {
float:left;
display:block;
background:url("TabSide.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsRight a span {float:none;}
/* End IE5-Mac hack */
#tabsRight a:hover span {
color:#000;
}
#tabsRight a:hover {
background-position:0% -22px;
}
#tabsRight a:hover span {
background-position:100% -22px;
}
/*- Menu Tabs Right2--------------------------- */
#tabsRight2 {
float:left;
width:300;
background:#000000 url(Spacer.jpg) repeat-x;;
font-size:93%;
text-align: center;
line-height:normal;
border-bottom:1px solid #000000;
}
#tabsRight2 ul {
margin:0 auto;
padding:0px 120px 0px 0px;
list-style:none;
}
#tabsRight2 li {
display:inline;
margin:0 auto;
padding:0;
}
#tabsRight2 a {
float:left;
background:url("TabSpan.jpg") no-repeat left top;
margin:0 auto;
padding:0 0 0 9px;
text-decoration:none;
}
#tabsRight2 a span {
float:left;
display:block;
background:url("TabSpan.jpg") no-repeat right top;
padding:5px 15px 0px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsRight2 a span {float:none;}
/* End IE5-Mac hack */
#tabsRight2 a:hover span {
color:#000;
}
#tabsRight2 a:hover {
background-position:0% -22px;
}
#tabsRight2 a:hover span {
background-position:100% -22px;
}
HTML Code -> index.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" xml:lang="en" lang="en">
<head>
<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/Style.css" type="text/css" />
<title>Blank</title>
</head>
<body>
<!-- wrap starts here -->
<div class="headerphoto"></div>
<div id="tabsLeft">
<ul>
<li><a href="index.html#" title="Home"><span>Home</span></a></li>
<li><a href="index.html#" title="Forun"><span>Forum</span></a></li>
<li><a href="index.html#" title="News"><span>News</span></a></li>
</ul>
</div>
<div id="tabsLeft2">
<ul>
<li><a href="index.html#" title="Blogs"><span>Blogs</span></a></li>
</ul>
</div>
<div id="tabsCenter">
<ul>
<li><a href="index.html#" title="Sign In"><span>Sign In</span></a></li>
</ul>
</div>
<div id="tabsCenter2">
<ul>
<li><a href="index.html#" title="Register"><span>Register</span></a></li>
</ul>
</div>
<div id="tabsRight">
<ul>
<li><a href="index.html#" title="Contact Us"><span>Contact Us</span></a></li>
</ul>
</div>
<div id="tabsRight2">
<ul>
<li><a href="index.html#" title="Help"><span>Help</span></a></li>
</ul>
</div>
<div id="wrap">
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="content">
<div id="sidebar">
<div class="sidebox">
<h1>Short About</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Donec libero. Suspendisse bibendum. Cras id urna. Morbi tincidunt, orci
ac convallis aliquam, lectus turpis varius lorem, eu posuere nunc justo
tempus leo.</p>
</div>
<div class="sidebox">
<h1 class="clear">Sidebar Menu</h1>
<ul class="sidemenu">
<li><a href="index.html" class="top">Home</a></li>
<li><a href="#TemplateInfo">Template Info</a></li>
<li><a href="#SampleTags">Sample Tags</a></li>
<li><a href="http://www.styleshout.com/">More
Templates...</a></li>
<li><a href="http://www.4templates.com/?aff=ealigam">Premium
Templates</a></li>
</ul>
</div>
<div class="sidebox">
<h1>Sponsors</h1>
<ul class="sidemenu">
<li><a href="http://www.dreamhost.com/r.cgi?287326" class="top">Dreamhost</a></li>
<li><a href="http://www.4templates.com/?aff=ealigam">4templates</a></li>
<li><a href="http://store.templatemonster.com/?aff=ealigam">TemplateMonster</a></li>
<li><a href="http://www.fotolia.com/partner/114283">Fotolia.com</a></li>
<li><a href="http://www.text-link-ads.com/?ref=40025">Text
Link Ads</a></li>
</ul>
</div>
<div class="sidebox">
<h1>Wise Words</h1>
<p>"No man can live happily who regards himself alone; who turns
everything to his own advantage. You must live for others if you wish
to live for yourself."</p>
<p class="align-right">- Seneca</p>
</div>
<div class="sidebox">
<h1>Support Styleshout</h1>
<p>If you are interested in supporting my work and would like to
contribute, you are welcome to make a small donation through the <a href="http://www.styleshout.com/">donate link</a> on
my website - it will be a great help and will surely be appreciated.</p>
</div>
<div class="sidebox">
<h1>Search Box</h1>
<form action="#" class="searchform">
<p> <input name="search_query" class="textbox" type="text" /> <input name="search" class="button" value="Search" type="submit" /> </p>
</form>
</div>
</div>
<div id="main">
<div class="post"> <a name="TemplateInfo"></a>
<h1>Template Info</h1>
<p>Posted by <a href="index.html">ealigam</a></p>
<p><strong>PixelGreen 1.1</strong> is a free,
W3C-compliant, CSS-based website template by <strong><a href="http://www.styleshout.com/">styleshout.com</a></strong>.
This work is distributed under the <a rel="license" href="http://creativecommons.org/licenses/by/2.5/"> Creative
Commons Attribution 2.5 License</a>, which means that you are
free to use and modify it for any purpose. All I ask is that you
include a link back to <a href="http://www.styleshout.com/">my
website</a> in your credits.</p>
<p>For more free designs, you can visit <a href="http://www.styleshout.com/">my website</a> to
see my other works.</p>
<p>Good luck and I hope you find my free templates useful!</p>
<p class="post-footer align-right"> <a href="index.html" class="readmore">Read more</a>
<a href="index.html" class="comments">Comments (7)</a>
<span class="date">Nov 11, 2006</span> </p>
</div>
<a name="SampleTags"></a>
<h1>Sample Tags</h1>
<h3>Code</h3>
<p><code> code-sample { <br />
font-weight: bold;<br />
font-style: italic;<br />
} </code></p>
<h3>Example Lists</h3>
<ol>
<li><span>example of ordered list</span></li>
<li><span>uses span to color the numbers</span></li>
</ol>
<ul>
<li><span>example of unordered list</span></li>
<li><span>uses span to color the bullets</span></li>
</ul>
<h3>Blockquote</h3>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat....</p>
</blockquote>
<h3>Image and text</h3>
<p> <a href="http://getfirefox.com/"><img src="images/firefox-gray.jpg" alt="firefox-gray" class="float-left" height="121" width="100" /></a>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero.
Suspendisse bibendum. Cras id urna. Morbi tincidunt, orci ac convallis
aliquam, lectus turpis varius lorem, eu posuere nunc justo tempus leo.
Donec mattis, purus nec placerat bibendum, dui pede condimentum odio,
ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit,
leo a pharetra condimentum, lorem tellus eleifend magna, eget fringilla
velit magna id neque. Curabitur vel urna. In tristique orci porttitor
ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar
ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit
lectus eu est. </p>
<h3>Example Form</h3>
<form action="#">
<p> <label>Name</label> <input name="dname" value="Your Name" size="30" type="text" /> <label>Email</label>
<input name="demail" value="Your Email" size="30" type="text" /> <label>Your Comments</label> <textarea rows="5" cols="5"></textarea> <br />
<input class="button" type="submit" /> </p>
</form>
<br />
</div>
<!-- content-wrap ends here --> </div>
</div>
<!-- footer starts here -->
<div id="footer">
<div id="footer-content">
<div class="col float-left">
<h3>Site Partners</h3>
<ul>
<li><a href="http://www.dreamhost.com/r.cgi?287326"><strong>Dreamhost</strong>
- Reliable Webhosting at $7.95/mo</a></li>
<li><a href="http://www.4templates.com/?aff=ealigam"><strong>4templates</strong>
- Low Cost Hi-Quality Templates</a></li>
<li><a href="http://store.templatemonster.com/?aff=ealigam"><strong>TemplateMonster</strong>
- Best templates on the net!</a></li>
<li><a href="http://www.fotolia.com/partner/114283"><strong>Fotolia</strong>
- Free stock images or from $1</a></li>
<li><a href="http://www.text-link-ads.com/?ref=40025"><strong>Text
Link Ads</strong> - Easiest. Money. Ever.</a></li>
</ul>
</div>
<div class="col float-left">
<h3>Links</h3>
<ul>
<li><a href="http://www.openwebdesign.org/"><strong>openwebdesign.org</strong></a></li>
<li><a href="http://www.OSWD.org/"><strong>OSWD.org</strong></a></li>
<li><a href="http://www.zeroweb.org/"><strong>zeroweb.org</strong></a></li>
<li><a href="http://www.alistapart.com/"><strong>Alistapart</strong></a></li>
<li><a href="http://www.cssremix.com/"><strong>CSS
Remix</strong></a></li>
</ul>
</div>
<div class="col2 float-right">
<p> © copyright 2006 <strong>Your Company Name</strong><br />
Design by: <a href="index.html"><strong>styleshout</strong></a>
Valid <a href="http://jigsaw.w3.org/css-validator/check/referer"><strong>CSS</strong></a>
| <a href="http://validator.w3.org/check/referer"><strong>XHTML</strong></a>
</p>
<ul>
<li><a href="index.html"><strong>Home</strong></a></li>
<li><a href="index.html"><strong>Sitemap</strong></a></li>
<li><a href="index.html"><strong>RSS Feed</strong></a></li>
</ul>
</div>
</div>
</div>
<!-- footer ends here --><!-- wrap ends here -->
</div>
</body>
</html>
http://i12.photobucket.com/albums/a233/Metalsiege/example.jpg