Now I have the problem that when I try adding a simple navigation at the bottom of the page, it appears as blocks like the top.
My CSS is as follows:
/* THIS IS THE NAVIGATION LAYER */
#main-nav {
background: #EC2028;
height: 25px;
}
/* THIS IS FOR THE TOP NAVIGATION BAR */
#main-nav ul {
list-style-type: none;
margin: 0;
padding: 0;
align: center;
overflow: hidden;
}
#main-nav li {
float: left;
}
#main-nav a:link,a:visited {
display: block;
width: 120px;
font-weight: bold;
color: #FFFFFF;
background-color: #EC2028;
text-align: center;
padding: 4px;
text-decoration: none;
text-transform: uppercase;
}
#main-nav a:hover,a:active {
background-color: #EF5127;
}
I was hoping by using the #main-nav parents that when I used anchor tags outside of the #main-nav div they wouldn't be affected.However at the bottom of the page I have my 'footer' div with simple a href links, and they appear as blocks. There is one extra link at the bottom, that isn't on the top, and it appears as normal text like it should.
Here's snippets of the HTML:
<div id="main-nav">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#products">Products</a></li>
<li><a href="#tech">Vehicle Tech</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!-- MAIN-NAV DIV END -->
<div id="footer">
<a href="#home">home</a> |
<a href="#products">products</a> |
<a href="#tech">vehicle tech</a> |
<a href="#about">about</a> |
<a href="#contact">contact</a> |
<a href="#legal">legal</a>
</div>
What gives? Any help would be appreciated. (It's 4AM... it could be something staring me in the face I'm not seeing.)Thanks


Sign In
Create Account



Back to top









