Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: not2easy

Message Too Old, No Replies

Need help with CSS to style Drupal active-trail

Drupal active-trail

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

5+ Year Member



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!

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

5+ Year Member



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)

5+ Year Member



I figured it out.

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

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

5+ Year Member



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!