britkimberly Posted January 26 Posted January 26 I have Hubspot CTA buttons on the homepage of my website. I have CSS styling for this button so that they look like the rest of the primary buttons on my website. Here is the code I used...it works like a charm. /* HUBSPOT CTA Buttons */ button{ background-color: var(--primaryButtonBackgroundColor); color: var(--primaryButtonTextColor); text-transform: uppercase; letter-spacing: 1px; border: none; padding:15px; min-height:30px; min-width: 120px; } /* END HUBSPOT CTA Buttons */ Where I'm running into trouble is that after going through and removing all my CSS and adding it back in I have come to find out that it's this snippet of code that is causing my text box edit toolbar to stretch out and get cut off making it unusable (see attached screenshot). I wasn't aware CSS we apply to our website could affect the native tools on SquareSpace itself. Any ideas here on how I can fix this code so it no longer messes with the Squarespace toolbars?
Solution britkimberly Posted January 26 Author Solution Posted January 26 I solved the problem on my own with a little more work. I adjusted the code to include the button class provided by hubspot to be: /* HUBSPOT CTA Buttons */ button.hs-cta-trigger-button.hs-cta-trigger-button-144189548654{ background-color: var(--primaryButtonBackgroundColor); color: var(--primaryButtonTextColor); text-transform: uppercase; letter-spacing: 1px; border: none; padding:15px; min-height:30px; min-width: 120px; } /* END HUBSPOT CTA Buttons */ tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment