pre Posted January 20, 2020 Posted January 20, 2020 Dear community I have added the following CSS code to underline the active pages on my page. .main-nav ul li.active-link a, .main-nav ul li.active-link a:active { text-decoration: underline !important; } .main-nav a:hover { text-decoration: underline !important; } Now the problem is that the whole navigation folder gets underlined, but I only want the actual site. How can I do that? Somehow excluding the other pages in the folder? Here's my page: pascalreinmann.com Thanks for you help!
tuanphan Posted January 21, 2020 Posted January 21, 2020 remove your code, and use this .main-nav ul li.active-link>a, .main-nav ul li.active-link a:active { text-decoration: underline !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
pre Posted January 21, 2020 Author Posted January 21, 2020 @tuanphan There is another problem with my mobile version. How can I adjust the padding for the folder here on the mobile version? and make it "drop-down" as on the desktop version?
tuanphan Posted January 21, 2020 Posted January 21, 2020 #mobileNav .mobile-folder>a { margin-left: 1.5em !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.