Ewald_Rist Posted November 24, 2021 Posted November 24, 2021 Hi, Im currently working on my website. Its still in its development stages so it isn't live yet. I have a question that I would appreciate some help with. My header is very standard, with a pages on the left, logo in the middle and button on the right ( as shown below with the attached images ) Im attempting to style the "lets chat" button on the right to look like the linked page on the left. Initially it looks fine: however when it hovers it shows a black background: Would anyone be able to help me style this button so that it behaves the same as the linked page on the left, where upon hover the background doesn't change, only a line appears under the text. Many thanks in advance!
Beyondspace Posted November 24, 2021 Posted November 24, 2021 24 minutes ago, Ewald_Rist said: Hi, Im currently working on my website. Its still in its development stages so it isn't live yet. I have a question that I would appreciate some help with. My header is very standard, with a pages on the left, logo in the middle and button on the right ( as shown below with the attached images ) Im attempting to style the "lets chat" button on the right to look like the linked page on the left. Initially it looks fine: however when it hovers it shows a black background: Would anyone be able to help me style this button so that it behaves the same as the linked page on the left, where upon hover the background doesn't change, only a line appears under the text. Many thanks in advance! Can you share your site with the protected password to check your issue? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Ewald_Rist Posted November 24, 2021 Author Posted November 24, 2021 Hi! My website url is: riststudio.com the password is: welcome
Beyondspace Posted November 24, 2021 Posted November 24, 2021 2 hours ago, Ewald_Rist said: Hi! My website url is: riststudio.com the password is: welcome If you want to set style for the 'lets chat' button, try adding to Home > Design > Custom Css .header-actions-action [href*="contact"] { /*style the button*/ padding: 8px 16px; } .header-actions-action [href*="contact"]:hover:before { /*style for the hover state*/ border-radius: 10px !important; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Ewald_Rist Posted November 24, 2021 Author Posted November 24, 2021 Hi! Thanks for your response - it's greatly appreciated! I've imputed the code into the custom Css section of my website, however upon hover the the button still shows a black back ground. If possible I would like the button to remain the same on hover ( no background changes ), with the edition of a line appearing underneath. For example: Above is how the about me navigation looks on hover. Many Thanks, Ewald
Beyondspace Posted November 24, 2021 Posted November 24, 2021 46 minutes ago, Ewald_Rist said: Hi! Thanks for your response - it's greatly appreciated! I've imputed the code into the custom Css section of my website, however upon hover the the button still shows a black back ground. If possible I would like the button to remain the same on hover ( no background changes ), with the edition of a line appearing underneath. For example: Above is how the about me navigation looks on hover. Many Thanks, Ewald Remove my previous codes and replace it with the following one .primary-button-shape-pill .btn[href*="contact"]:hover { color: #000 !important; } .header-actions-action [href*="contact"]:after { content: ""; position: absolute; width: 100%; height: 1px; left: 0; bottom: 0.1em; background-color: currentColor; transform: scalex(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); } .header-actions-action [href*="contact"]:before { content: none !important; } .header-actions-action [href*="contact"]:hover:after { transform: scalex(1); transform-origin: left; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Ewald_Rist Posted November 25, 2021 Author Posted November 25, 2021 Hi! Thanks - This worked! I have one more question that you could maybe help me figure out. On the mobile view the menu displays as follows: How do I make the 'about me' and 'lets chat' links the same size and display under each other? Many Thanks, Ewald
Beyondspace Posted November 25, 2021 Posted November 25, 2021 8 hours ago, Ewald_Rist said: Hi! Thanks - This worked! I have one more question that you could maybe help me figure out. On the mobile view the menu displays as follows: How do I make the 'about me' and 'lets chat' links the same size and display under each other? Many Thanks, Ewald You can try @media only screen and (max-width: 767px) { .header-menu-nav-folder-content { display: block; flex-grow: 0; } .header-menu-nav-list [data-folder="root"] { justify-content: center; } .header-menu-cta a { font-size: 8.5vmin; } } Hope that it can help your BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Ewald_Rist Posted November 25, 2021 Author Posted November 25, 2021 Thanks for your help! The contents of my mobile menu are arranged properly. However the 'lets chat' link doesn't have an underline like the 'about me' link. Is there some more code I can input to make them the same. You have been a great help so far! Many thanks, Ewald
tuanphan Posted November 28, 2021 Posted November 28, 2021 On 11/26/2021 at 12:07 AM, Ewald_Rist said: Thanks for your help! The contents of my mobile menu are arranged properly. However the 'lets chat' link doesn't have an underline like the 'about me' link. Is there some more code I can input to make them the same. You have been a great help so far! Many thanks, Ewald Do you still need help? You mean under let's chat when users on let's chat page? 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.