Skip to main content

Forums » Art & Creativity » CSS Help - Hyperlinks in single widgets

Claine Moderator

Does anybody know how to change the hyperlink colours in a particular widget. For example, only in the guestbook widget or friends widget?
Sanne Moderator

Sure thing! You'll have to find one of the main classes for the widgets, or use the particular ID of a widget, and then implement it like this:
Code:
ul.guestbook a, ul.guestbook a:active { color:#fff; }

This will change all the links in the guestbook widget to white.
Code:
.guestbookcommenter a, .guestbookcommenter a:active { color: #fff; }

This will only make the username link white.

You may need to change the element type (e.g. I had to use the ul.class setup because the element with the class is a ul that wraps around the content that it is applied to) depending on what the widget uses in the HTML and what you want to affect. I hope this helps!
Claine Topic Starter Moderator

Thank you Sanne! It worked perfectly

You are on: Forums » Art & Creativity » CSS Help - Hyperlinks in single widgets

Moderators: Mina, Keke, Cass, Auberon, Claine, Ilmarinen, Ben, Darth_Angelus