JZoeller Posted November 1, 2023 Share Posted November 1, 2023 I am curious if anyone knows how to create a navigation header similar to the photo attached - sort of like a file folder style where the selected tab is not underlined? I've been searching and haven't found anything similar. Any help would be great! Link to comment
Inspirerd Posted November 2, 2023 Share Posted November 2, 2023 Hey @JZoeller! Wow that looks cool! I’m willing to take a stab at it. Could you share a link to your website so I can make code for your template/style? (If it’s password protected, please include your password.) Daniel Rodrigues | Excito LLC Squarespace Web Design for Photographers & Creatives 🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com 💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers 🤝 Always happy to help and collaborate! Connect with me on LinkedIn. Link to comment
JZoeller Posted November 2, 2023 Author Share Posted November 2, 2023 Hi @Inspirerd, thanks so much! The website is https://fife-harp-k7yh.squarespace.com/ and password is "mwedit". Appreciate your help! Link to comment
Inspirerd Posted November 2, 2023 Share Posted November 2, 2023 Hey @JZoeller! Here is the first draft to show you the concept. Feel free to nitpick and tell me all the adjustments you want (should the line touch the image, should there be more space between the logo and the line, should the links have bigger boxes?) Make sure to take a look at how it behaves when you scroll the page. Here is the code (it only applies this style to desktop/not to mobile). @media screen and (min-width: 768px) { .header-nav-item { border: solid 1px var(--navigationLinkColor); border-bottom: 0; padding: 10px 20px; position: relative; } .header-nav-item--active.header-nav-item--active.header-nav-item--active > a { background-image: none; } .header-nav-item--active::before, .header-nav-item--active::after { content: ""; position: absolute; bottom: 0; border-bottom: solid 1px var(--navigationLinkColor); width: 100000px; width: 100vw; } .header-nav-item--active::before { right: 100%; } .header-nav-item--active::after { left: 100%; } .header-title-nav-wrapper { align-items: flex-end; } } Daniel Rodrigues | Excito LLC Squarespace Web Design for Photographers & Creatives 🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com 💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers 🤝 Always happy to help and collaborate! Connect with me on LinkedIn. Link to comment
JZoeller Posted November 2, 2023 Author Share Posted November 2, 2023 @Inspirerd WOW!! That is exactly what I was hoping for, thank you so much! My only feedback is what you said above - remove the space between the line and the image below, and also add a little bit of padding below the logo. Thank you!! Link to comment
Solution Inspirerd Posted November 2, 2023 Solution Share Posted November 2, 2023 (edited) @JZoeller Here you go! Feel free to increase the padding on the buttons (`.header-nav-item`) or ask me to, if you want them bigger. (The first padding `10px` is vertical and the second `20px` is horizontal.) @media screen and (min-width: 768px) { .header-nav-item { border: solid 1px var(--navigationLinkColor); border-bottom: 0; padding: 10px 20px; position: relative; } .header-nav-item--active.header-nav-item--active.header-nav-item--active>a { background-image: none; } .header-nav-item--active::before, .header-nav-item--active::after { content: ""; position: absolute; bottom: 0; border-bottom: solid 1px var(--navigationLinkColor); width: 100000px; width: 100vw; } .header-nav-item--active::before { right: 100%; } .header-nav-item--active::after { left: 100%; } .header-title-nav-wrapper { align-items: flex-end; } .header-announcement-bar-wrapper.header-announcement-bar-wrapper { padding-bottom: 0; } .header-title-logo { padding-bottom: 0.6vw; } } Edited November 2, 2023 by Inspirerd tuanphan 1 Daniel Rodrigues | Excito LLC Squarespace Web Design for Photographers & Creatives 🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com 💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers 🤝 Always happy to help and collaborate! Connect with me on LinkedIn. Link to comment
JZoeller Posted November 2, 2023 Author Share Posted November 2, 2023 @Inspirerd That looks perfect! Thank you so much for your help 🙂 Inspirerd 1 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