5 replies [Last post]
newdude
newdude's picture
Offline
Enthusiast
Last seen: 6 years 23 weeks ago
Timezone: GMT-5
Joined: 2008-11-29
Posts: 187
Points: 285

for the life of me, i cannot figure out how to change the background color of the author name. if you look on this page, you'll see there's a link with "admin".

i have the following css applied but none of the items are working:

.author vcard {background:red;}
.author vcard a{background:red;}
.author vcard a:link{background:red;}
.author vcard a:visited {background:red;}

why isn't my css code affecting it???

please advise. thanks in advance.

djsounds02
djsounds02's picture
Offline
Enthusiast
Burnley, UK
Last seen: 11 years 30 weeks ago
Burnley, UK
Joined: 2010-06-17
Posts: 110
Points: 134

are you sure its a background

are you sure its a background colour you require? and not just the text in red. if you infact wanted the text to apear red then i think you should be using a color attribute rather than background.

djsounds02
djsounds02's picture
Offline
Enthusiast
Burnley, UK
Last seen: 11 years 30 weeks ago
Burnley, UK
Joined: 2010-06-17
Posts: 110
Points: 134

'hiding author link in

'hiding author link in wordpress' if you want it hidden use a display:none ?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

it doesn't work as there is

Puzzled it doesn't work as there is no such element as 'vcard'. Bone up on your css selector syntax.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 5 years 46 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

I think what you are wanting

I think what you are wanting is
.author.vcard { background-color: #f00; }
That span has two classes, and if you want to use them both, then there you go. I would recommend just choosing one or the other, though.

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

newdude
newdude's picture
Offline
Enthusiast
Last seen: 6 years 23 weeks ago
Timezone: GMT-5
Joined: 2008-11-29
Posts: 187
Points: 285

thanks!

thanks!