Solved

CSS Link Hover Color

Posted on 2010-09-06
2
561 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

809 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