1280 Posts in 354 Topics by 487 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1459 Views |
-
Section/Current CSS menue styles

17 January 2010 at 11:36pm
Hey Everyone. I am trying to use the 'section' css style for buttons that are selected and have children. For all other buttons that are selected I want them to use the 'current' css style. Can anyone help me?
-
Re: Section/Current CSS menue styles

18 January 2010 at 9:16am
$LinkOrSection will return 'link' for a general page or 'section' if you're on the current page or a child page. If you could adapt your css to use those class names that would be the best way.
<a href="$Link" class="$LinkOrSection">...
-
Re: Section/Current CSS menue styles

18 January 2010 at 11:42am
I have attached 2 examples and how i want them to look.
The one with Welcome selected has no children and therefor looks different to when International Exchanges is selected in example 2. International Exchanges has children and therefor has a different BG image which has a matching grey colour behind the button so that it looks like the bg of children goes up and behind the parent button image. Hope you get what im meaning.
Help would be greatly appreciated.
-
Re: Section/Current CSS menue styles

18 January 2010 at 6:22pm
Sorted it.
<a href="$Link" title="$Title.XML" class="$LinkOrSection <% if Children %>ChildrenClass<% end_if %>">Works now. Thanks
| 1459 Views | ||
|
Page:
1
|
Go to Top |


