homepage Welcome to WebmasterWorld Guest from 184.72.82.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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
bunch




msg:3867994
 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">
</li>
</div>

Can anyone help me find the correct CSS?

Thank you!

 

Bert36




msg:3868024
 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; }

bunch




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

I figured it out.

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

bunch




msg:3868031
 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