• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 981
  • Last Modified:

CSS override

Is there a way to override an existing css declaration?

I do not have access to the html page.  I only have access to the css page.  Currently, I would like to override the existing css declaration:
.category .content table tbody tr.new td {
      font-weight: bold;
}
with:
.category .content table tbody tr.new td a:visited{
      font-weight: normal;
}

Unfortunately, what I've attempted to do fail.  I would greatly appreciate any suggestion to accomplish my task.
0
paulinewin
Asked:
paulinewin
2 Solutions
 
DragKngCommented:
Make sure this declaration is after the first one in your css style sheet.  It should overwrite the previous one.

Don't forget to make it for all the states of the link

JUST AN EXAMPLE change code as you like
.category .content table tbody tr.new td a,
.category .content table tbody tr.new td  a:link,
.category .content table tbody tr.new td  a:visited,
 .category .content table tbody tr.new td a:active {
        font-weight: normal;
    }
 .category .content table tbody tr.new td a:hover {
        font-weight: normal;
        }


If that fails, look at the HTML and see if there is any way to be even more specific...(google "specificivity" and CSS) for example is there an ID tag anywhere on the page you can use?
0
 
BadotzCommented:
<$.02>"specificivity"? Are you kidding me?? "specificivity"??? Man, is *that* hard to pronounce ;-)</$.02>
0
 
TheKyleCommented:
You might have an easier time searching for "css specificity".

Also, here's a good (however geeky) explanation of specificity...

http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now