Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-25-2010, 11:33 AM   #1
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
CSS class cannot unbold a link.

Weird, links within div class tags (class small) with this css:

.small {
color: Silver;
font-weight: normal;
font-size: 11px;
}

.small a {
color: Blue;
font-weight: normal;
}


Are still bold. Because the wrapper div has all links bold. I thought this should override it? It overrides the color fine.... why not the 'normal' font weight?
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 11:36 AM   #2
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
you can go like:

<div style="font-weight:normal;">text here</div>

to see if it overrides it. it shouldnt get the bold from the wrap but i cant see the entire code so hard to say.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 11:42 AM   #3
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
.small {
font: normal 12px Arial, Helvetica, sans-serif;
}

is so much cleaner also
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 11:50 AM   #4
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
What browser? Looked at it in Firebug to see what its properties actually are? Tried setting it in the link pseudo-classes?
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 12:05 PM   #5
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
I had to change the ".small" from a class to a div id, and the a to the more specific a:link for it to work. Like this (and ofcourse change the "div class=" to "div id=" in the html tags around the links i wanted to change):

#small {
color: Silver;
font-weight: normal;
font-size: 11px;
}

#small a:link {
color: Blue;
font-weight: normal;
}

dont know why a class doesnt work but hey, this works too.
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 01:36 PM   #6
pornpf69
Too lazy to set a custom title
 
pornpf69's Avatar
 
Join Date: Jun 2004
Location: Brasil
Posts: 15,778
could have been easily solved by adding a small thing: !important;
.small a {
color: Blue;
font-weight: normal !important;
}

not that hard...
pornpf69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 03:32 PM   #7
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
It may be a problem of specificity. I run into these problems occasionally. They are so annoying.

http://css-tricks.com/specifics-on-css-specificity/

Basically the solution is to put the tag hierarchy in front of it or to use id's. If the specificity value is too low it won't pick it up.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 03:46 PM   #8
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
the sad part is that with all of these different solutions, no one is 'more correct' than another
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.