• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 978
  • 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;
.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.
2 Solutions
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?
<$.02>"specificivity"? Are you kidding me?? "specificivity"??? Man, is *that* hard to pronounce ;-)</$.02>
You might have an easier time searching for "css specificity".

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


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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