Skip navigation.

Ramblings

a test …

Oooh green tags

,

So, just had a new dig at using user stylesheets right here on MyOpera. I noticed after selecting a different theme that the tags didn't stand out from the text really well, so I decided to paint them green.

Unfortunately there wasn't a special class set for all tag links and similar when viewing the source, but luckily I noticed all tags links to an url containing "/tag/", in addition the tag cloud on the right side has a convoluting element with a tagcloud id. Here's the code:

#tagcloud a:link, a[href*="/tag/"]:link {
      color: #009900;
}
So basically, paint green all anchor links that are inside the tagcloud element, and all links in the document that has a href that contains the phrase "/tag/". Neat?

Want to do the same? Copy the content above and paste it in the text form after going to My accountChange designcustom style sheet. Remember to check the option: Use my custom style sheet together with the current theme

Opera 9.2 outZoom text only in web pages with Opera

Comments

drlaunch 5. May 2007, 09:31

Wow thanks! I didn't even know that was possible with CSS. But the green color should probably be a tad darker.

I think that the second selector you used covers the tag cloud too. But I'm not sure.

nicomen 6. May 2007, 20:27

I'll make it slightly darker.

I think the second selector needs to be that way to have more specificity than the default stylesheet rule.

rezadotcom 15. February 2008, 07:56

:yes:

lor74cas 10. April 2008, 14:33

Thank you now my blog is more green

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Type the two words displayed in the image below:


Smilies

Download Opera, the fastest and most secure browser
July 2009
M T W T F S S
June 2009August 2009
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31