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?

2 instances of menu - separating CSS
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: 2 instances of menu - separating CSS
#8646
2 instances of menu - separating CSS 14 Years ago Karma: 0
I am using 2 instances of this menu at the same time. My second menu is taking on the same CSS styles as the first. How do I keep them separate. I have added Module Class Suffix but get the same thing. Any help will be most appreciated.
The administrator has disabled public write access.
 
#8647
Re:2 instances of menu - separating CSS 14 Years ago Karma: 760
Hello,

What styles you mean? Have you created specific styles for the first instance? If yes, could you provide it and say where you placed it?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#8648
Re:2 instances of menu - separating CSS 14 Years ago Karma: 0
Thanks.

I have 2 menus. One horizontal. (Already styled 80%). Built the second and expected it to not take on the attributes of the first. Does this explain? Do you want to see my CSS for menu 1?

What about Module Class Suffix?
The administrator has disabled public write access.
 
#8649
Re:2 instances of menu - separating CSS 14 Years ago Karma: 760
Joomla! modules can provide ability to specify module class suffix, but it's used by site template, not by module. If your site template doesn't use module class suffix when shows modules, this parameter will not make sense. You can place specific styles in "CSS Styles" parameter in module settings and use {$id} predefined variable which contains value of "id" attribute of module container.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#8650
Re:2 instances of menu - separating CSS 14 Years ago Karma: 0
Sorry but I am not following you that well. I understand that module class suffix can add more control to your css for particular modules. I guess my question is is whether module class suffix is the aswer to separating the 2 styles. Or is there another method to us a separate css file.

You spoke of the {$id} variable in the parameters.Does placing css here overrule the existing css?

Thanks so much for your help
The administrator has disabled public write access.
 
#8651
Re:2 instances of menu - separating CSS 14 Years ago Karma: 760
You can enter module class suffix in module parameters but if your site template doesn't support it, this will not take effect. Using of predefined variable helps to create specific styles for current menu instance. For example if you want to add change menu items background, you can place the following code into "CSS Styles" parameter:

Code:


#{$id} LI A
{
  background: red none;
}



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