- This topic has 8 replies, 2 voices, and was last updated 9 years, 1 month ago by
Leo.
-
AuthorPosts
-
February 9, 2017 at 6:17 am #276562
Max
Hey Guys,
Button Css for background color of button has stopped working in the navigation of my site. Can you take a look and see whats up?
http://christinahouserphoto.flywheelsites.com
Thanks!
February 9, 2017 at 6:18 am #276564Max
It may have stopped because i put a photo as the full background Not sure though. I am using elementir page builder.
February 9, 2017 at 6:30 am #276566Leo
StaffCustomer SupportHi Max,
Try this CSS:
.generate-merged-header .main-navigation:not(.is_stuck):not(.toggled) .main-nav > ul > li[class*="current-menu-"] > a { background-color: #4e5e78; }Let me know.
February 9, 2017 at 6:34 am #276567Leo
StaffCustomer SupportIf you don’t want the hover to be transparent then try this:
.generate-merged-header .main-navigation:not(.is_stuck):not(.toggled) .main-nav > ul > li[class*="current-menu-"] > a, .generate-merged-header .main-navigation:not(.is_stuck):not(.toggled) .main-nav > ul > li[class*="current-menu-"] > a:hover .main-navigation .main-nav ul li[class*="current-menu-"] > a .main-navigation .main-nav ul li[class*="current-menu-"] > a:hover { background-color: #4e5e78; }February 9, 2017 at 6:41 am #276570Max
That did it Leo!
Will I have to use a similar targeting for the mobile navigation to change the tablet and mobile nav characteristics?
Thanks!
February 9, 2017 at 6:44 am #276574Leo
StaffCustomer SupportThe CSS above is not desktop specific so you should be fine 🙂
February 9, 2017 at 6:46 am #276575Max
ok cool!
Well, it seems that my css targeting the media isn’t working now lol. It worked prior to merging the header with the background.
@media (max-width: 768px) {
.main-navigation a {
text-align: center;
color: black;}
}February 9, 2017 at 7:35 am #276589Max
How would I now target the mobile and tablet characteristics?
I can’t seem to make any changes unless I put “Important!”
And my button won’t show up on the tablet or mobile either.
Any thoughts? I am messing around with the code now too.
February 9, 2017 at 5:17 pm #276788Leo
StaffCustomer SupportI edited the code above: https://generatepress.com/forums/topic/button-css-stopped-working-for-some-reason/#post-276567
Looks like that CSS is still working to center the mobile items?
-
AuthorPosts
- You must be logged in to reply to this topic.