5 replies [Last post]
newdude
Offline
Enthusiast
Last seen: 18 weeks 6 days ago
Timezone: GMT-4
Joined: 2008-11-29
Posts: 183
Points: 279

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: 2 years 50 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: 2 years 50 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: 9 hours 20 min ago
London
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15663
Points: 2801

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
Las Vegas, NV
Last seen: 1 year 25 weeks ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

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
Offline
Enthusiast
Last seen: 18 weeks 6 days ago
Timezone: GMT-4
Joined: 2008-11-29
Posts: 183
Points: 279

thanks!

thanks!