Maksymrewko Posted February 13, 2022 Posted February 13, 2022 Site URL: https://toucan-accordion-c6x7.squarespace.com My Nav in mobile is not taking on the custom CSS Ihave applied. Example in the images below is the 'UA' language switcher which has a white box around it on desktop but this is not present in the mobile breakpoint? Any hekp would be much appreciated Website passwors is: Maksym
meganheath Posted February 13, 2022 Posted February 13, 2022 Hi @Maksymrewko The mobile menu uses a different class to the desktop menu. Add this to Custom CSS for the mobile menu. Alternatively you can use the standard button element in the header. You can turn this on by selecting Edit Header > Elements > Button. .header-menu-nav-item:nth-child(12) a{ color: #000; background-color: #fff; padding-left: 1vw; padding-right: 1vw; } Maksymrewko 1
Maksymrewko Posted February 13, 2022 Author Posted February 13, 2022 @meganheath thaks for your help but this doesnt seem to be achiveing the exact results I require. The nth child item is not taking on the colour associated to it and the background (currently black) span the width of the nav compared to desktop? Any suggestions?
meganheath Posted February 14, 2022 Posted February 14, 2022 15 hours ago, Maksymrewko said: @meganheath thaks for your help but this doesnt seem to be achiveing the exact results I require. The nth child item is not taking on the colour associated to it and the background (currently black) span the width of the nav compared to desktop? Any suggestions? Hi @Maksymrewko Try this instead .header-menu-nav-item:nth-child(12) a:not(.btn){ color: #253551; background-color: #000; padding-left: 2vw; padding-right: 1vw; padding-top: 2vw; padding-bottom: 2vw; display: inline-block; } You can add a width property if you want to change the width of the background. Hope that helps. Maksymrewko 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment