Horizontal menu in topbanner position

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Dec 29, 2012 1:27 am
Reply with quote
Report this post
I wish to put horizontal menu on position 'topbanner' of Publisher template. I get there menu, but it is vertical. How I can get horizontal. I use standard menu module which is in J2.5.8.
Thank you in advance.
User avatar
Junior Boarder

Konrad M
Mon Dec 31, 2012 9:38 am
Reply with quote
Report this post
Hi,
can you give us url to your site? It will be much easier to help you.
User avatar

GK User
Mon Dec 31, 2012 9:58 am
Reply with quote
Report this post
On picture you can see result. Menu is vertical, but I wish to be in horizontal solution. Social position is empty.

pic01.jpg
User avatar
Junior Boarder

Konrad M
Mon Dec 31, 2012 10:23 am
Reply with quote
Report this post
Please try add this to override.css
Code: Select all
#gkTopBanner ul.menu li {
padding: 10px 0;
float: left;
margin-right: 10px;
}
#gkTopBanner ul.menu li:hover > a {
padding-left: 0px !important;
}

and remember to enable override.css option in template settings.
User avatar

GK User
Mon Dec 31, 2012 10:54 am
Reply with quote
Report this post
Yes, your are right. That works. But, problem is with color when I pick menu item. Color is same as background.

Thanks.
User avatar
Junior Boarder

Konrad M
Mon Dec 31, 2012 11:03 am
Reply with quote
Report this post
Add this code too:
Code: Select all
#gkTopBanner ul.menu li > a:hover {
color: #ffffff !important;
}

and set your own color value.
User avatar

GK User
Mon Dec 31, 2012 12:15 pm
Reply with quote
Report this post
It works. But, why after selecting menu item color is same as unselected. Can I set color for unselected and selected item in that menu.
Thanks.
User avatar
Junior Boarder

Konrad M
Mon Dec 31, 2012 2:57 pm
Reply with quote
Report this post
Please change my erlier code to this one:
Code: Select all
#gkTopBanner ul.menu li > a:hover,
#gkTopBanner ul.menu li.active > a {
color: #ffffff !important;
}
User avatar

GK User
Mon Dec 31, 2012 5:20 pm
Reply with quote
Report this post
I changed all code with this new one. Hover color works, but active (selected) menu return to standard color.

Regards.
User avatar
Junior Boarder

GK User
Mon Dec 31, 2012 5:34 pm
Reply with quote
Report this post
OK, it works now. Full code now is:

Code: Select all
#gkTopBanner ul.menu li {
padding: 10px 0;
float: left;
margin-right: 10px;
}
#gkTopBanner ul.menu li:hover > a {
padding-left: 0px !important;
}
#gkTopBanner ul.menu li > a:hover,
#gkTopBanner ul.menu li.active > a {
color: #ffffff !important;
}


Thanks a lot.
Regards.
User avatar
Junior Boarder


cron