3 replies [Last post]
listerd
listerd's picture
User offline. Last seen 11 weeks 4 days ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2007-02-08
Posts: 49
Points: 20

I have a few link styles throughout my website and on one of them I would like to NOT have the links bold....

all of the links are bold, which i dont mind, but on one of them i would like the same font weight as the same as the site. I thought that !important would work but it didnt.

Any ideas? Thanks

a.greylinks:link {color: #999999; text-decoration: none; font-weight: normal; !important;}
a.greylinks:visited {color: #999999; text-decoration: none; font-weight: normal; !important;}
a.greylinks:hover {color: #999999; text-decoration: none; font-weight: normal; !important;}
a.greylinks:active {color: #999999; text-decoration: none; font-weight: normal; !important;}

And the HTML is here

<tr>
<td><img src="/media/73115/blueschedulesarrow2.png" alt="Included in the Course" width="14" height="14" rel="14,14" /><a href="/what-you-need.aspx" class="greylinks">Webinar Class Tuition<img src="/media/83085/infoschedules.png" alt="exclamation" width="18" height="14" rel="18,14" /></a></td>
<td><span class="scheduleTitle">Time Zone:</span> Eastern Standard Time</td>
</tr>

Deuce
Deuce's picture
User offline. Last seen 4 weeks 6 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

Instead of font-weight:

Instead of
font-weight: normal; !important;
try
font-weight: normal !important;

If you would have read the posting guidelines and validated your code, you would have found this.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

listerd
listerd's picture
User offline. Last seen 11 weeks 4 days ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2007-02-08
Posts: 49
Points: 20

thanks for that worked great

thanks for that worked great

Tyssen
Tyssen's picture
User offline. Last seen 6 hours 31 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8140
Points: 1322

You shouldn't need all those

You shouldn't need all those !important rules. You also don't need to specify rules for all the states of the anchor when they're all the same. This is all you need:

.greylinks {color: #999; text-decoration: none; font-weight: normal }

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference