homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

Need help with CSS to style Drupal active-trail
Drupal active-trail

 1:36 pm on Mar 11, 2009 (gmt 0)

Below is my page structure. Let's say I want my active-trail to be red. I have tried every combination of CSS I can think of to make this happen.

<div id="menu">
<ul class="links primary_menu">
<li class="menu-121 active-trail first">

Can anyone help me find the correct CSS?

Thank you!



 2:04 pm on Mar 11, 2009 (gmt 0)

I am unsure if I understand the question?

To make text-colour red for your class active-trail you would write:

.active-trail { color: red; }


 2:10 pm on Mar 11, 2009 (gmt 0)

I figured it out.

#menu .primary_menu li.active-trail a {
color: red;


 2:12 pm on Mar 11, 2009 (gmt 0)

Thanks Bert36. I would have thought it would be that simple as well. But none of the simple things I tried worked with Drupal. The above code did. I appreciate your quick reply!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved