Advertisement

07.16.2008 at 11:26AM PDT, ID: 23570739
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

CSS Links ignoring class specific style

Asked by twestfall in Cascading Style Sheets (CSS)

Tags: ,

Ok I've never really had a problem styling links, and this is driving me nuts, so maybe someone can shed some light on this for me.

First I have all the links on my pages pretty much the same by the following declaration in my stylesheet

#content a, #content a:visited {
    color:#C2C0BA;
    border-bottom: 1px solid #333333;
    text-decoration:none;
}
#content a:hover {
    border-bottom:1px solid #ED145A;
    color:#C2C0BA;
}

Then I have a section (div class: prev-posts-title) that I don't want to have the underlines, what would be the best way to accomplish this? Seems pretty simple right?

.prev-posts-title a:link, .prev-posts-title a:visited {
    border: none;
}
.prev-posts-title a:hover {
    border: none;
}

Now since my links reside within the div class: prev-posts-links like so..

<div class="prev-posts-title"><a href="whatevber.com">hyperLINK</a></div>

Why are my links ignoring that style i setup for that particular class, and just inheriting my #content link style?

I've tried adding a class to my actual link like this:

<a href="whatever.com" class="nounderline">HYPERLINK</a>

then of course adding something like this to my stylesheet:

a.nounderline:link {
border: none;
}
a.nounderline:visited {
border: none;
}
a.nounderline:hover {
border: none;
}

I've tried to use span in place of my divs, no dice.

No matter what I try the underlines remain stubborn


I do notice if i use an actual div id="prev-posts-title" instead of a class...it will work fine...but for some unknown reason I've gotten into a habbit of using classes for smaller, less important areas on my website while div IDs control the main areas/blocks. Is there a downfall to using too many div id's and not using div classes?

for example the block this is all going within is considerd div id="prev-posts" now inside this main block i have several areas, for the post title, post date etc..all which are in their own div class, should i be using div id's div classes or span classes? I've seen each technique used, what is the BEST? and proper way?

Any Ideas?

Thanks in advanceStart Free Trial
 
 
[+][-]07.16.2008 at 11:36AM PDT, ID: 22018808

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: CSS, Firefox 3
Sign Up Now!
Solution Provided By: asafadis
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.16.2008 at 11:39AM PDT, ID: 22018833

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:39AM PDT, ID: 22018841

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628