Flock Posted October 16, 2019 Share 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 Link to comment
tuanphan Posted October 16, 2019 Share 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Solution colin.irwin Posted October 16, 2019 Solution Share 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 tuanphan, ebRa, sssupers and 1 other 4 If you're looking for a Squarespace Developer, drop me a line. Link to comment
Flock Posted October 19, 2019 Author Share Posted October 19, 2019 Thank you @colin.irwin! That worked perfectly. colin.irwin 1 Link to comment
AWC914 Posted October 24, 2019 Share 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 Link to comment
Iwan Posted March 22, 2022 Share Posted March 22, 2022 @colin.irwin Hi there Colin, I'm trying your above CSS code, but it isn't working? Could you assist? Link to comment
Iwan Posted March 22, 2022 Share 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? Link to comment
Iwan Posted March 23, 2022 Share 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). Link to comment
Jia Posted March 23, 2022 Share 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 www.sevenstars.studiowww.instagram.com/sevenstars.studio Link to comment
Iwan Posted March 24, 2022 Share Posted March 24, 2022 Thanks @Jia! https://beige-oleander-mp66.squarespace.com/ password: tuansqsp Link to comment
Jia Posted March 24, 2022 Share 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 www.sevenstars.studiowww.instagram.com/sevenstars.studio Link to comment
Iwan Posted March 24, 2022 Share 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? Link to comment
Jia Posted March 24, 2022 Share 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 www.sevenstars.studiowww.instagram.com/sevenstars.studio Link to comment
Iwan Posted March 25, 2022 Share 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? Link to comment
Jia Posted March 25, 2022 Share 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 www.sevenstars.studiowww.instagram.com/sevenstars.studio Link to comment
Iwan Posted March 25, 2022 Share Posted March 25, 2022 Sorry @jia, what code do I add for the navigation menu items?? Link to comment
Iwan Posted March 25, 2022 Share 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. Link to comment
Jia Posted March 25, 2022 Share 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 www.sevenstars.studiowww.instagram.com/sevenstars.studio 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