Hi, I'm fairly new to css and I'm having problems trying to get a navigation menu built for my site. I've been following this example:
(Thanks to ChrisHunt for the link)
and I have everything working right for my menu, but I'm having a problem with my link colors. I want the links in my menu to be a different color than the links in the text of my pages, but for some reason the links in my menu are the same color as the links in my pages.
Here's the code for my menu:
And here's the code for my "text" links:
Both of these are in the same style sheet. It seems that the color for my links always display blue until you visit the link. (the background colors are always right, just not the text of the link) After that, it displays correctly.
Can someone please tell my why I can't get the text color in my "ul li a" style to display correctly?
Thanks!
Hope This Helps!
Ecobb
"My work is a game, a very serious game." - M.C. Escher
(Thanks to ChrisHunt for the link)
and I have everything working right for my menu, but I'm having a problem with my link colors. I want the links in my menu to be a different color than the links in the text of my pages, but for some reason the links in my menu are the same color as the links in my pages.
Here's the code for my menu:
Code:
ul {
color: #FFF8DC;
display: block;
background-color=Maroon;
font-size : 14px;
text-decoration: none;
font-family : Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
list-style: none;
width: 150px;
}
ul li {
position: relative;
}
ul li a {
display: block;
text-decoration: none;
color: #FFF8DC;
background:maroon;
padding: 0px 0px 0px 2px;
border: 1px solid #8B8B7A;
border-bottom: 0;
}
ul li a:hover {
color: Maroon;
background-color=#C1C19C;
text-decoration: none;
}
li ul {
position: absolute;
left: 149px;
top: 0;
display: none;
}
li:hover ul, li.over ul {
display: block; }
Code:
a:link {
color: blue;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
color: red;
text-decoration: underline;
}
a:active {
color: red;
}
Both of these are in the same style sheet. It seems that the color for my links always display blue until you visit the link. (the background colors are always right, just not the text of the link) After that, it displays correctly.
Can someone please tell my why I can't get the text color in my "ul li a" style to display correctly?
Thanks!
Hope This Helps!
Ecobb
"My work is a game, a very serious game." - M.C. Escher