Bexster Posted June 30, 2023 Posted June 30, 2023 Hello Looking for the code to align a button within a text box at different screen sizes. So the button will always be a certain number of pixels below the last line of text and the text box will always end a certain number of pixels below the bottom of the button. On some screen widths there is too much of a gap between the text and the button and on others, the button is ending up over the text. Thanks
tuanphan Posted July 1, 2023 Posted July 1, 2023 Can you share link to this page? We can check 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!)
Bexster Posted July 1, 2023 Author Posted July 1, 2023 http://www.thegoodliferefresh.squarespace.com/ Thanks!
tuanphan Posted July 3, 2023 Posted July 3, 2023 On 7/1/2023 at 6:36 PM, Bexster said: http://www.thegoodliferefresh.squarespace.com/ Thanks! What is password? 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!)
tuanphan Posted July 4, 2023 Posted July 4, 2023 On 7/3/2023 at 4:36 PM, Bexster said: Sorry! The password is madeleine2023 Can you add a text link in Text Block? We can use code to turn link to button. And I guess we can solve this 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!)
Bexster Posted July 4, 2023 Author Posted July 4, 2023 (edited) Thanks, I've managed to turn the link into a button - using this code: a#book_call_btn { display: inline-block; padding: 20px 40px; background-color: #dfa695; color: #ffffff; cursor: pointer; text-align: center; font-size: 18px; transition-duration: 0.4s; } So I just need help with the code to keep the 'button' aligned in the text box. Edited July 4, 2023 by Bexster
tuanphan Posted July 5, 2023 Posted July 5, 2023 I see you still use Button Block, not Text Block link 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!)
Bexster Posted July 5, 2023 Author Posted July 5, 2023 (edited) I am using the button link on desktop and text link on mobile only section as desktop looks fine. Should I change both? Really appreciate your help with this! Edited July 5, 2023 by Bexster
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment