AHC Posted July 25, 2021 Share Posted July 25, 2021 Site URL: https://frog-vuvuzela-w66t.squarespace.com/config/pages hello! I’m trying to create a header similar to the image below. I am guessing I need to create a secondary header above the navbar but am struggling to figure out the coding. Any advice? Link to comment
tuanphan Posted July 25, 2021 Share Posted July 25, 2021 7 hours ago, AHC said: Site URL: https://frog-vuvuzela-w66t.squarespace.com/config/pages hello! I’m trying to create a header similar to the image below. I am guessing I need to create a secondary header above the navbar but am struggling to figure out the coding. Any advice? 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
AHC Posted July 25, 2021 Author Share Posted July 25, 2021 Just switched it thank you. Password is Veritas123 Link to comment
AHC Posted July 25, 2021 Author Share Posted July 25, 2021 frog-vuvuzela-w66t.squarespace.com Link to comment
tuanphan Posted July 27, 2021 Share Posted July 27, 2021 Which plan do/will you use? Add to Design > Custom CSS .header-title-nav-wrapper { flex-direction: column; justify-content: flex-start !important; align-items: flex-start; } 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
AHC Posted July 30, 2021 Author Share Posted July 30, 2021 @tuanphan Is there a way to target the background color to only be behind the navigation bar, not the logo and the button? And also align the button and logo to the same height? Link to comment
AHC Posted July 30, 2021 Author Share Posted July 30, 2021 .header-title-nav-wrapper { flex-direction: column; justify-content: flex-start !important; align-items: flex-start; } //change navbar background// .header-nav { background-color: rgb(18,33,54); width: 150vw !important; align-items: flex-start; height: 6vw !important; line-height: 6vw; margin-top: 2vw; } //full width header// .header{ margin-left: -5vw } //reset logo location// .header-nav{ padding-left: 5vw !important; } .header-title-logo img{ padding-left: 4vw !important } //fix mobile// @media screen and (max-width: 646px) { .header--menu-open .header-menu { opacity: 1; visibility: visible; color: black !important; } } This is what I have currently but it has a lot of problems. The button disappears on desktop view and the burger isn’t showing on mobile. Also at a certain width it adjusts and you can’t see the navbar. Any suggestions? Link to comment
tuanphan Posted July 30, 2021 Share Posted July 30, 2021 I think we need to use jQuery code to remove current button/add new button in new position, then can achieve full with colored navigation bar. I will test some code & let you know soon. 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
CM_Jag Posted February 20 Share Posted February 20 Hi there! I'm also trying to do the same logo & button above nav/page menu with a dividing line in between (see image below). Any suggestions which code might work? For reference, the website is: https://www.ldmcounselling.net/ Thanks so much! Link to comment
tuanphan Posted February 21 Share Posted February 21 14 hours ago, CM_Jag said: Hi there! I'm also trying to do the same logo & button above nav/page menu with a dividing line in between (see image below). Any suggestions which code might work? For reference, the website is: https://www.ldmcounselling.net/ Thanks so much! Add this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.header-display-desktop .header-nav').appendTo('.header-display-desktop'); }) </script> <style> .header-nav { width: 100% !important; padding-left: 0 !important; border-top: 1px solid black; padding-top: 10px; margin-top: 10px; } .header-display-desktop { flex-wrap: wrap; } nav.header-nav-list { width: 100% !important; justify-content: flex-start !important; } </style> CM_Jag 1 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
CM_Jag Posted February 21 Share Posted February 21 @tuanphan this is amazing!! thank you! Is there anyway to center align the nav.header-nav-list under the logo & button? Link to comment
tuanphan Posted February 23 Share Posted February 23 On 2/21/2024 at 9:10 PM, CM_Jag said: @tuanphan this is amazing!! thank you! Is there anyway to center align the nav.header-nav-list under the logo & button? change flex-start to center 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment