Solved

Problem with CSS styles

Posted on 2011-09-30
2
207 Views
Last Modified: 2012-08-13
Hello all,

I've set the links for the entire page to white as follows:
a:link {
      color: #FFFFFF;
      text-decoration: none;
}
a:visited {
      text-decoration: none;
      color: #FFFFFF;
}
a:hover {
      text-decoration: none;
      color: #FFFFFF;
}
a:active {
      text-decoration: none;
      color: #FFFFFF;
}

But there are two specific links I need to be black, on this style:

.style35 {color: #838484; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold;
}

How do I make style35 to have black links?

Thanks!
0
Comment
Question by:pvg1975
2 Comments
 
LVL 22

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 36892269
I'm assuming that "style35" is the class name of a <p> tag and the link you want to be black is within that <p> tag. Is this correct?

If so, you would use the descendant selector as such:

.style35 a {color: #000;}

Open in new window


This simply says that all <a> tags that are descendants of an element with a class name of "style35" should be black.
0
 

Author Closing Comment

by:pvg1975
ID: 36892320
Thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Width of Page is Affecting Side Menu 6 31
Background video not displaying in Internet Explorer. 3 37
Css regex 6 38
Change box shadow 1 29
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

792 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