Flock Posted October 16, 2019 Posted October 16, 2019 Hi, I can't figure out how to add a simple white outline to the main navigation so it's readable against the background image. When I've inserted some simple CSS I've found with #mainNavigation it applies the drop shadow to any link on the website, and I only want it on the menu items at the top of the page. Thanks! http://www.flocksalonandgallery.com
tuanphan Posted October 16, 2019 Posted October 16, 2019 @Flock Add to Home > Design > Custom CSS nav#main-navigation li a { border: 2px solid #fff; padding: 3px; } 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!)
Solution colin.irwin Posted October 16, 2019 Solution Posted October 16, 2019 (edited) This puts a grey 'glow' behind your navigation links. Put it in your custom css. nav#main-navigation { text-shadow: 0px 0px 3px #aaa; } The parameters (in order) are Horizontal shadow offset - currently set to 0px so it sits behind the image) Vertical shadow offset - currently set to 0px so it sits behind the image) Blur radius - set to 3px so that it casts an omnidirectional shadow. Reduce this value to make the shadow sharper. Color - currently set to a mid gray Edited October 16, 2019 by colin.irwin Flock, tuanphan, sssupers and 1 other 4 I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. You might want to check out my Squarespace Template Finder or read my Squarespace tips Speaking of tips, 💲I've got a tip jar. Feel free to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free
Flock Posted October 19, 2019 Author Posted October 19, 2019 Thank you @colin.irwin! That worked perfectly. colin.irwin 1
AWC914 Posted October 24, 2019 Posted October 24, 2019 (edited) is there a way to make this work with a "sticky" menu? I've set my header to stay to the top of the page using: /* Sticky Nav */ .Header { position: fixed !important; } ... but once the nav menu moves beyond the background images the white menu merges with the white background of the pages I HAVE THIS WORKING NOW. BUT IS THERE A WAY TO ADD A DROP SHADOW TO YOUR LOGO IN THE SAME WAY? .. apologies for the CAPS Edited October 24, 2019 by AWC914 problem solved - new problem
Iwan Posted March 22, 2022 Posted March 22, 2022 @colin.irwin Hi there Colin, I'm trying your above CSS code, but it isn't working? Could you assist?
Iwan Posted March 22, 2022 Posted March 22, 2022 Hi again @tuanphan, I have white text in my headers. I would like to create a grey shadow so the text stands out. Could you please assist?
Iwan Posted March 23, 2022 Posted March 23, 2022 Hi there @tuanphan or @Jia, could you please help? I'd like to create a shadow outline around the white text in my page headers (menu navigation items).
Jia Posted March 23, 2022 Posted March 23, 2022 4 hours ago, Iwan said: Hi there @tuanphan or @Jia, could you please help? I'd like to create a shadow outline around the white text in my page headers (menu navigation items). Please share the website link and password (if applicable) so I can take a look Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio
Iwan Posted March 24, 2022 Posted March 24, 2022 Thanks @Jia! https://beige-oleander-mp66.squarespace.com/ password: tuansqsp
Jia Posted March 24, 2022 Posted March 24, 2022 2 hours ago, Iwan said: Thanks @Jia! https://beige-oleander-mp66.squarespace.com/ password: tuansqsp Add this code to custom css (Design > Custom CSS) and leet me know how it goes 🙂 .header-layout-nav-right .header-nav-list { text-shadow: 0px 0px 5px #000; } Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio
Iwan Posted March 24, 2022 Posted March 24, 2022 Thank you!! It works @Jia😀 So next, please, the site name is also in white in the header...can I do the same?
Jia Posted March 24, 2022 Posted March 24, 2022 21 minutes ago, Iwan said: Thank you!! It works @Jia😀 So next, please, the site name is also in white in the header...can I do the same? Sure thing, add this code as well: .header-title-text a { text-shadow: 0px 0px 5px #000; } Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio
Iwan Posted March 25, 2022 Posted March 25, 2022 @Jia, morning, regarding the above, if I want the shadow to apply to only certain page headers, how do I do this please?
Jia Posted March 25, 2022 Posted March 25, 2022 22 minutes ago, Iwan said: @Jia, morning, regarding the above, if I want the shadow to apply to only certain page headers, how do I do this please? Then you'll have to add the code not in the custom css area, but the Page Settings > Advanced area of the pages you want it to be applied to. <style> .header-title-text a { text-shadow: 0px 0px 5px #000; } </style> Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio
Iwan Posted March 25, 2022 Posted March 25, 2022 Sorry @jia, what code do I add for the navigation menu items??
Iwan Posted March 25, 2022 Posted March 25, 2022 Hi @Jia, I could apply the code for the site name on the relevant pages: <style> .header-title-text a { text-shadow: 0px 0px 5px #000; } </style> But I also need a code to put a shadow behind the header navigation items? Thank you so much.
Jia Posted March 25, 2022 Posted March 25, 2022 (edited) 2 hours ago, Iwan said: Hi @Jia, I could apply the code for the site name on the relevant pages: <style> .header-title-text a { text-shadow: 0px 0px 5px #000; } </style> But I also need a code to put a shadow behind the header navigation items? Thank you so much. It's the same code as before, just make sure it's between the <style></style> tags. .header-layout-nav-right .header-nav-list { text-shadow: 0px 0px 5px #000; } Edited March 25, 2022 by Jia Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified. www.sevenstars.studio www.instagram.com/sevenstars.studio
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment