twinklingshallots Posted October 15, 2022 Share Posted October 15, 2022 Site URL: http://www.quetiicocoaching.com The navigation names on this site are really long and the site owner wants two of them even longer. I wish to set a max-width for the primary navigation items so the names wrap to multiple lines. For example, one navigation item is "TRAUMA IN SCHOOLS" I want it to be stacked: TRAUMA IN SCHOOLS I tried this, and it doesn't work. Any ideas anyone? /* stacking nav items on multiple lines */ .Header-nav--primary .Header-nav-item { vertical-align: top; text-align: left; max-width:96px; } /* end STACKING individual nav items */ Link to comment
Beyondspace Posted October 16, 2022 Share Posted October 16, 2022 4 hours ago, twinklingshallots said: Site URL: http://www.quetiicocoaching.com The navigation names on this site are really long and the site owner wants two of them even longer. I wish to set a max-width for the primary navigation items so the names wrap to multiple lines. For example, one navigation item is "TRAUMA IN SCHOOLS" I want it to be stacked: TRAUMA IN SCHOOLS I tried this, and it doesn't work. Any ideas anyone? /* stacking nav items on multiple lines */ .Header-nav--primary .Header-nav-item { vertical-align: top; text-align: left; max-width:96px; } /* end STACKING individual nav items */ I can not access your site. Can you check it again? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
twinklingshallots Posted October 18, 2022 Author Share Posted October 18, 2022 (edited) oh! Typo-- so sorry @bangank36! I had an awful fright for a second there!https://www.queticocoaching.com/ Edited October 18, 2022 by twinklingshallots Link to comment
twinklingshallots Posted October 19, 2022 Author Share Posted October 19, 2022 (edited) I thought setting a max-width for the individual nav item class would work. I am not sure if it's just not working or if the text labels for the 2 blogs (Trauma... and Getting Unstuck) have something wrong with them. Those 2 are crashing and overlapping. I've attached a grab. .Header-nav-item { display: inline-block; vertical-align: top; max-width: 96px; } Also tried without display:inline-block; .Header-nav-item { vertical-align: top; max-width: 96px; } Edited October 19, 2022 by twinklingshallots Link to comment
twinklingshallots Posted October 19, 2022 Author Share Posted October 19, 2022 also tested word-break: break-all; as a radical snippet to see if i could force the words to break and it didn't work Link to comment
twinklingshallots Posted October 24, 2022 Author Share Posted October 24, 2022 @bangank36 I was wondering if you could take a look again? I am sorry that I had a typo in my url. It is https://www.queticocoaching.com/ I wish to control the width of the individual navigation items so the longer ones will wrap to multiple lines rather than being really long on one line. Thank you... Link to comment
Beyondspace Posted October 24, 2022 Share Posted October 24, 2022 Try adding to Home > Design > Custom Css .Header-nav-item[href*="trauma-in-schools"] { white-space: normal; max-width: 90px; text-align: center; } Let me know how it works on your site Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted October 24, 2022 Share Posted October 24, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
twinklingshallots Posted October 27, 2022 Author Share Posted October 27, 2022 Thank you @bangank36!! You are amazing-- I was getting discouraged and could not figure it out. 🙏 I appreciate your help. Link to comment
Beyondspace Posted October 27, 2022 Share Posted October 27, 2022 6 minutes ago, twinklingshallots said: Thank you @bangank36!! You are amazing-- I was getting discouraged and could not figure it out. 🙏 I appreciate your help. It 's good to know that bro BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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