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?

Unique backgrounds for main menu itemsI
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Unique backgrounds for main menu itemsI
#7265
Unique backgrounds for main menu itemsI 14 Years, 2 Months ago Karma: 0
I want to add unque backgrounds to the main menu items. Is there a way to select the background property for each ul id or class? I have the menu close to achieving this, I just hope I didn't waste my time. You can see the results here. http:http://realetemp1.socialflyway.com
Thanks in advance
The administrator has disabled public write access.
 
#7267
Re:Unique backgrounds for main menu itemsI 14 Years, 2 Months ago Karma: 760
Hello,

Each <LI> element of the menu has unique CSS class which looks like:

ux-menu-item<ITEM_ID>

where <ITEM_ID> is menu id. The following CSS rule can be used that define unique background for menu item:

.ux-menu-container .ux-menu LI.ux-menu-item<ITEM_ID> > A
{
background-image: <path_to_bg_image>;
}

Just replace <ITEM_ID> with necessary menu id.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#7274
Re:Unique backgrounds for main menu itemsI 14 Years, 2 Months ago Karma: 0
Thanks! Worked like a charm! Have another question though, "When I adjust the padding the borders don't shift with the buttons, I there a way to fix this?," or do I need to add extra space in my images?
Last Edit: 2010/09/20 19:38 By SpeedRicer.
The administrator has disabled public write access.
 
#9521
Re:Unique backgrounds for main menu itemsI 13 Years, 11 Months ago Karma: 0
What about this?

MainMenuItem->
----->SubMenuItem-1 (uniq background-1)-> SubSubMenuItem-1.1 (uniq background-1.1)
----------------------------------------> SubSubMenuItem-1.2 (uniq background-1.2)
----------------------------------------> SubSubMenuItem-1.3 (uniq background-1.3)
----->SubMenuItem-2 (uniq background-2)-> SubSubMenuItem-2.1 (uniq background-2.1)
----------------------------------------> SubSubMenuItem-2.2 (uniq background-2.2)
----------------------------------------> SubSubMenuItem-2.3 (uniq background-2.3)

Each menu item here has its own background. Is it posible?
Spent about an hour trying to do it.
Last Edit: 2010/12/17 13:27 By foodgy.
The administrator has disabled public write access.
 
#9522
Re:Unique backgrounds for main menu itemsI 13 Years, 11 Months ago Karma: 760
Hello,

You can use the following CSS rule:

Code:


UL.ux-menu LI.ux-menu-item[MENU_ITEM_ID] A
{
  background: red none;
}



Where [MENU_ITEM_ID] is ID of menu item. For example if you want to change background of menu item with ID = 19, use the following CSS rule:

Code:


UL.ux-menu LI.ux-menu-item19 A
{
  background: red none;
}



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