Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Custom styling - menu items
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Custom styling - menu items
#21061
Custom styling - menu items 13 Years, 1 Month ago Karma: 0
Hi, can anyone help me please, I love this extension and have used it several times, I am looking at using it for a new menu which I need to customise as follows:

Main menu item needs a white background with different coloured lines (like the menu on this site) but each menu item needs a different colour

Each sub menu needs a different colour

eg, Home would be red
News would have a blue line then the sub menu for news would have a solid blue background
Contact us have a green line then the sub menu for news would have a solid green background

Is there a way I can do this?

this is a demo of what I'm trying to achieve
Last Edit: 2011/10/25 08:58 By zeebee.Reason: image added
The administrator has disabled public write access.
 
#21064
Re:Custom styling - menu items 13 Years, 1 Month ago Karma: 760
Hello,

The next CSS rule can be used to set specific background color for specific menu item:

Code:


UL.ux-menu LI.ux-menu-item[ITEM_ID]>A
{
 background: none red !important;
}



Where [ITEM_ID] is menu item ID. For example if menu item ID is 27, use the next CSS rule:

Code:


UL.ux-menu LI.ux-menu-item27>A
{
 background: none red !important;
}



If necessary to set background for all sub-menus for specific parent menu item, use the next CSS rule:

Code:


UL.ux-menu LI.ux-menu-item[PARENT_ITEM_ID] .ux-menu-sub A
{
background: none yellow !important;
}



Where [PARENT_ITEM_ID] is parent menu item ID.

PS: This post contains information about menu HTML layout and CSS classes. It can be useful to customize the menu.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#21068
Re:Custom styling - menu items 13 Years, 1 Month ago Karma: 0
Thank you very much for your help
The administrator has disabled public write access.
 
#21089
Re:Custom styling - menu items 13 Years, 1 Month ago Karma: 0
This works perfectly, thank you!
Would you also be able to help with the code to have a different coloured text on each of the sub-menus too please? and rather than adding a bored-bottom would it be possible to just underline the text of the main menu item
The administrator has disabled public write access.
 
#21095
Re:Custom styling - menu items 13 Years, 1 Month ago Karma: 0
Sorry, I've been trying all day to make the changes in my last message without success, and also referred to the previous thread you suggested, any help you can provide would be much appreciated!
The administrator has disabled public write access.
 
#21098
Re:Custom styling - menu items 13 Years, 1 Month ago Karma: 760
Use the next CSS rule to specify color for sub-menus:

Code:


UL.ux-menu LI.ux-menu-item[PARENT_ITEM_ID] .ux-menu-sub A
{
 color: red !important;
}



Where [PARENT_ITEM_ID] is parent menu item ID.

And the next CSS rule to add bottom border:

Code:


UL.ux-menu LI.ux-menu-item[ITEM_ID]
{
 border-bottom: 2px solid green;
}



Where [ITEM_ID] is menu item ID.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123