djm Posted April 1, 2020 Share Posted April 1, 2020 Site URL: https://nomadmassage.squarespace.com How can I change the background color of the drop-down navigation on the "Ready" template? How can I increase the navigation item spacing inside the drop-down navigation? Link to comment
derricksrandomviews Posted April 1, 2020 Share Posted April 1, 2020 I can answer the first question right now, have to research the second one for some code /* Change the navigation drop-downs colour */ #topNav nav .folder-collection ul li a { background-color:#F4F4F4; } Create your own color here: https://www.hexcolortool.com/#000000 use the number in the left box with the #..... You should be able to adjust space between links wih site styles, just be aware that this will adjust any drop down at the same time, like a category drop down, to target just your drop down menu on the nav bar will require code that I have not found yet. https://support.squarespace.com/hc/en-us/articles/205816038-Styling-navigation Link to comment
tuanphan Posted April 3, 2020 Share Posted April 3, 2020 Your site is private. Can you setup password & share url? 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!) Link to comment
djm Posted April 3, 2020 Author Share Posted April 3, 2020 @tuanphan Sure thing. Here it is: URL: https://nomadmassage.squarespace.com PW: t6nQ=9Ln Link to comment
tuanphan Posted April 3, 2020 Share Posted April 3, 2020 6 minutes ago, djm said: @tuanphan Sure thing. Here it is: URL: https://nomadmassage.squarespace.com PW: t6nQ=9Ln Add to Home > Design > Custom CSS .subnav { background: red !important; } .subnav div { padding-bottom: 20px !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!) Link to comment
djm Posted April 3, 2020 Author Share Posted April 3, 2020 Hi @derricksrandomviews Thanks for this. 1. Unfortunately the code is not working for me. This is what I inserted into Custom CSS: #topNav nav .folder-collection ul li a { background-color: #E3EDEA; } Is there something I’m missing? 2. I had tried this before, too. But the site style can only change the main navigation item spacing, not the spacing of the items inside the drop-down. Link to comment
djm Posted April 3, 2020 Author Share Posted April 3, 2020 4 minutes ago, tuanphan said: Add to Home > Design > Custom CSS .subnav { background: red !important; } .subnav div { padding-bottom: 20px !important; } So good. This both works perfectly. Thanks @tuanphan. Just noticing another issue: some words are cut off. Any way of expanding the navigation width? Reducing the font size doesn’t help here... Link to comment
tuanphan Posted April 4, 2020 Share Posted April 4, 2020 18 hours ago, djm said: So good. This both works perfectly. Thanks @tuanphan. Just noticing another issue: some words are cut off. Any way of expanding the navigation width? Reducing the font size doesn’t help here... Just checked quickly. Increase width seems time-consuming. You can use this code to solve. .folder-toggle~.subnav div span { word-break: break-word; } 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!) Link to comment
djm Posted April 4, 2020 Author Share Posted April 4, 2020 13 hours ago, tuanphan said: Just checked quickly. Increase width seems time-consuming. You can use this code to solve. .folder-toggle~.subnav div span { word-break: break-word; } Thanks. This works. But it breaks at really bad points. The words are in German. Any way around this? Link to comment
tuanphan Posted April 5, 2020 Share Posted April 5, 2020 11 hours ago, djm said: Thanks. This works. But it breaks at really bad points. The words are in German. Any way around this? Add this CSS @media screen and (min-width:901px) { .nav-open .sidetray-wrapper { min-width: 900px; } } 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!) Link to comment
djm Posted April 14, 2020 Author Share Posted April 14, 2020 This is a nice workaraound, instead of using hyphens. I adapted the wrapper width to my liking. Great stuff. Thanks so much. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.