visual_ess Posted August 31 Share Posted August 31 Hi! Website: www.visual-ess.com Password: 2023 I want to add a white background colour to the links in my header with a black dropdown shadow on hover. Does anybody know the CSS code to do this? I have attached a screenshot of what I want it to look like and also an example of black shadow on hover. Thanks, Sarah Link to comment
Solution Lesum Posted August 31 Solution Share Posted August 31 @visual_ess Hi Sarah, Here's a code snippet you can try: .header-nav-list { row-gap: 20px; } .header-nav-item--active a { background-image: none !important; } .header-nav-item { background: #FFFFFF !important; padding-left: 0.4em !important; padding-right: 0.4em !important; padding-top: 0.15em !important; } .header-nav-item:hover { box-shadow: 5px 5px #000 !important; } visual_ess 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
visual_ess Posted August 31 Author Share Posted August 31 27 minutes ago, Lesum said: @visual_ess Hi Sarah, Here's a code snippet you can try: .header-nav-list { row-gap: 20px; } .header-nav-item--active a { background-image: none !important; } .header-nav-item { background: #FFFFFF !important; padding-left: 0.4em !important; padding-right: 0.4em !important; padding-top: 0.15em !important; } .header-nav-item:hover { box-shadow: 5px 5px #000 !important; } Amazing. Just what I wanted. Thank you so much!! Lesum 1 Link to comment
visual_ess Posted September 1 Author Share Posted September 1 8 hours ago, visual_ess said: Amazing. Just what I wanted. Thank you so much!! Hey Lesum, My mobile menu now looks like this, is there a code I can use to turn it off for mobile? and only have it for desktop? Thank you Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment