Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
About 2 horizontal menus
« previous
next »
Print
Pages: [
1
]
Author
Topic: About 2 horizontal menus (Read 5812 times)
armpouniotis
Sr. Member
Posts: 377
About 2 horizontal menus
«
on:
November 10, 2013, 18:40:05 »
Hi there !
I want to have 2 horizontal menus in my website, but with different style each one of them (colors, font family, font size etc).
How can I do that in CSS
So far, I have 2 horizontal menus with the same style...
thank you in advance
Christos
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10356
Re: About 2 horizontal menus
«
Reply #1 on:
November 11, 2013, 09:03:53 »
You can add a CSS suffix in one of the 2 modules.
Elxis (4.x is this what you use?) places module with in a <div class="module"> container. If you add a suffix such as "_test" the container will become <div class="module_test">
This way you can set different style on the menu.
.module ul.elx_menu { background-color:red; }
.module_test ul.elx_menu { background-color:green; }
If you include the menu modules in your template without the wrapper then you should use the template's wrapper element to separate them.
<div class="menu1">
<?php echo $eDoc->modules('menua', 'none'); ?>
</div>
<div class="menu2">
<?php echo $eDoc->modules('menub', 'none'); ?>
</div>
.menu1 ul.elx_menu { background-color:red; }
.menu2 ul.elx_menu { background-color:green; }
«
Last Edit: November 11, 2013, 09:10:43 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: About 2 horizontal menus
«
Reply #2 on:
November 11, 2013, 10:16:13 »
ok ! I got it !
I was a little bit confused by the CSS style of the menu, but not it is understood !
That's perfect !
thank you !!!
Logged
Christos Armpouniotis
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
About 2 horizontal menus