Solved

CSS Link Hover Color

Posted on 2010-09-06
2
564 Views
Last Modified: 2012-05-10
I have the following in my CSS file


#main_left_red {
height: 27px;
/* Background color of promo text block */      
background-color: #b11116;
border-bottom-style: solid;
border-bottom-width: 1px;
border-bottom-color: #000000;
padding: 10px 0 0 10px;
font-family: Tahoma, Arial, Verdana;
font-size: 18px;      
font-weight: bold;
color: #fff;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #f5f5f5;
}


#main_left_red a {
color: #fff;
text-decoration:none;

}

#main_left_red a:hover {
color: #fff;
text-decoration:none;

}

And this in the index.html file

<div id="main_left_red">
           
       
                         <a href="mylocatin.cfm>">txt goes here</a>
           
                  </div>

Regardless, my text turns red color, just like every link on the site  How do I get this one link not to change color?

0
Comment
Question by:Kamilek0617
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
str82no1 earned 500 total points
ID: 33613189
Try this.

#main_left_red a:hover {
color: #fff !important;
text-decoration:none;
}
0
 

Author Comment

by:Kamilek0617
ID: 33613226
Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question