katiedunnit Posted June 30, 2022 Share Posted June 30, 2022 Site URL: https://nagy-design.squarespace.com Hey there, I implemented a sticky nav, and a couple things I need help with: I want the logo to be bigger, extending outside the nav bar I do not want any white space around the slider The navigation should sit at the bottom, not showing any of the section below. I've changed the vh between 93-95 and messed around with different sizing but still can't get it to work Here's the code used: <style> @media screen and (min-width: 768px) { #header { position: sticky; top: 0; display: none; } main .page-section:first-child + #header { display: block; } main .page-section:first-child { min-height: calc(93vh - 92px)!important; } } </style> <script> document.addEventListener("DOMContentLoaded",function() { const header = document.getElementById('header'); const firstSection = document.querySelector('.page-section:first-child'); firstSection.after(header); }); </script> Link to comment
creedon Posted June 30, 2022 Share Posted June 30, 2022 Site-wide password? Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! Link to comment
katiedunnit Posted July 28, 2022 Author Share Posted July 28, 2022 Hey @creedon - password is password 🙂 So it looks on a smaller screen that there's no whitespace but I'm struggling to get the nav to be in the initial viewport without getting cut off. Thoughts?  Link to comment
tuanphan Posted July 31, 2022 Share Posted July 31, 2022 @katiedunnit #1. I want the logo to be bigger, extending outside the nav bar Like this? #2. I do not want any white space around the slider Can you take a screenshot of white space? #3. Try using calc(100vh - XXX) with xxx is a specific value 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
katiedunnit Posted August 1, 2022 Author Share Posted August 1, 2022 @tuanphan So I got rid of the whitespace, but the primary issue I can't seem to fix is the nav bar getting cut off in browser. I've tried different numbers (94vh-92vh) and now it's (100vh-92vh) and still happening. Nothing seems to change this. 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