Menu Item background color
Rate this topic: 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?
If I know how to do 1, then I'll manage the rest
Big thanks!
menu-color.gif
If I know how to do 1, then I'll manage the rest
Big thanks!
-
- 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.
-
- 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"?
Do I put something in css / override file and then in the menu item "Page Class"?
-
- 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.
-
- 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:
for second element.
Remember to enable "CSS override" in template settings - advanced section.
- 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.
-
- Moderator
- 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.
-
- Moderator
- GK User
- Mon Mar 09, 2015 8:25 pm
- Reply with quote
- Report this post
Nope, thanks - mission accomplished
-
- Expert Boarder
9 posts
• Page 1 of 1