Jump to content
scientistsofmedia

different color links in sidebar

Recommended Posts

scientistsofmedia+    0
scientistsofmedia

is it possible to have links that appear in the sidebar be a different color than the content links?  I can see via firebug that all the links in sidebar and page content are controlled via the <a> tag

 

here is a link to my site.

http://themonarchhouse.com/site/blog/

 

as you should see, I've added a soft grey background color to my sidebar widgets.  I would love to have the links in sidebar be white or black.  the content links can stay the orange color.

 

any suggestions or tips would be apprecated.

Share this post


Link to post
Share on other sites
Rob    547
Rob

As you know, this code is present in your site:

a {
    color: #F37D39;
}

That's the orange links.

 

Now, if you have those links within a custom class, you could apply the changes to that custom class.

 

So, if your list of links was wrapped in something like <div class="myrecentposts">list of links<div>, you could apply

 

.myrecentposts a {
    color: #F37D39;
}

Of course, this isn't easy with pre-defined lists. But easy as pie if you create your own.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
scientistsofmedia+    0
scientistsofmedia

Thank you.  I will give this a shot!!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Great.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×