AppealedApple Posted March 12, 2023 Share Posted March 12, 2023 Currently the site logo sits on the header, but I was wondering if it was possible to have the site logo overlap the announcement bar and header. As my header currently stands, it's too tall. Attached is what I'm trying to acheive. Link to comment
AppealedApple Posted March 12, 2023 Author Share Posted March 12, 2023 https://oddballsbakery.com is my site Link to comment
Solution inside_the_square Posted March 12, 2023 Solution Share Posted March 12, 2023 @AppealedApple totally! I hopped into your CSS and updated some of the code you had in there to make this magic happen. Feel free to adjust the top:-2rem to the size that suits you best! How this works: we had to move the announcement bar down to z-index:0, then apply a position absolute to the image so we could give it a z-index and move it up the x-axis with a negative top value. Hope this info helps and best of luck with your project! header#header { box-shadow: 3px 4px 8px rgba(54,49,94,.5) } footer#footer { box-shadow: 3px 4px 8px rgba(54,49,94,.5) } #announcement-bar-text-inner-id p { font-size: 16px !important; text-align: right !important } .sqs-announcement-bar-close { display: none !important } .sqs-announcement-bar-dropzone{ z-index:0!important } .header-title-logo,.header-title-logo a { overflow: visible !important; margin-bottom: -50px; } .header-title-logo img { max-height: 90px !important; position:absolute; top:-2rem; z-index:999!important } .header-title-logo img,.header-title-logo a { max-height: 150px !important } AppealedApple and tuanphan 1 1 🤓 Creator of InsideTheSquare.co ✨ SQUARESPACE CIRCLE LEADER✨ SQUARESPACE EXPERT ✨ SQUARESPACE EMPLOYEE EDUCATOR ✨ CERTIFIED CUSTOM CODE EXPERT ✨ 🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap 🙋♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn ⭐️ Ready to go pro? Get my custom code collection: insidethesquare.co/css 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