donforello Posted January 3, 2021 Posted January 3, 2021 Dear Community, I am trying to create a button that changes the text on it, when you hover over it and change it back when the cursor hovers off the button again. I have unsuccessfully searched everywhere for a solution and am hoping someone here might have had the same issue and will be able to help! Thanks in advance 🙂
tuanphan Posted January 7, 2021 Posted January 7, 2021 Hi. can you share link to page where you use button? We can help easier 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!)
donforello Posted January 14, 2021 Author Posted January 14, 2021 @tuanphan I have found the following solution, that works well: //custom sold button hover// .sqs-block-button .sqs-block-button-element--medium:before { content: "SOLD"; } .sqs-block-button .sqs-block-button-element--medium:hover::before { content: "sorry"; } //consistent size small button when text change// .sqs-block-button .sqs-block-button-element--small { width: 80%; max-width: 290px; box-sizing: border-box; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.