Menu Item background color

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
Tue Mar 03, 2015 12:48 pm
Reply with quote
Report this post
How can I have a different background color to each menu item?

menu-color.gif


If I know how to do 1, then I'll manage the rest :D

Big thanks!
User avatar
Expert Boarder

GK User
Tue Mar 03, 2015 1:36 pm
Reply with quote
Report this post
You can use override.css and :nth-child() css pseudoselector.
User avatar
Moderator

GK User
Tue Mar 03, 2015 2:08 pm
Reply with quote
Report this post
Thanks, but what is ":nth-child() css pseudoselector"?

Do I put something in css / override file and then in the menu item "Page Class"?
User avatar
Expert Boarder

GK User
Wed Mar 04, 2015 1:32 pm
Reply with quote
Report this post
Any pointers? Sorry, but I don't know where to start with this? I guess if you could help me with 1 button, I would be able to do the rest. 8-)
User avatar
Expert Boarder

GK User
Fri Mar 06, 2015 8:07 am
Reply with quote
Report this post
O'k, here is the live URL - hope you can help me out?

http://starsaver.co.za/testsite/index.php
User avatar
Expert Boarder

GK User
Sat Mar 07, 2015 8:21 pm
Reply with quote
Report this post
Please edit: /templates/gk_publisher/css/override.css and add at its end:
Code: Select all
.gkMenu > ul > li:nth-child(2) > a {background: red;}

for second element.
Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Sun Mar 08, 2015 5:53 pm
Reply with quote
Report this post
Joy! Thank you :)
User avatar
Expert Boarder

GK User
Mon Mar 09, 2015 7:25 pm
Reply with quote
Report this post
Please let me know if you would have any additional questions regarding this topic.
User avatar
Moderator

GK User
Mon Mar 09, 2015 8:25 pm
Reply with quote
Report this post
Nope, thanks - mission accomplished
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.