I have a theme button with an email address as its content. When the screen width is narrow, the email address is too long to fit in the button and so extends outside of the button. On a very narrow screen, that means some of the email address is cut off and doesn’t display. Is there a way to make the button and its text more responsive so the text will stay in the button? Perhaps either the text becomes smaller or wraps?
Hey 1039 Online!
Send us a link to the page and we’ll take a look. You can set your reply as private if you wish.
Cheers!
Elliott
Thanks for taking a look. Link in private content.
Hey!
Well, the only thing I can think of is to give it a smaller font size. Add this to a codeblock element in the page.
<style type = "text/css">
@media screen and (max-width: 1260px) {
.avia_iconbox_title { font-size: 11px !important; }
}
</style>
Cheers!
Elliott
Elliot,
That result of that code worked great on my phone. However, on my desktop, the text still extends past the button because it is not centering. If the text would just move over, like it does on the phone, it would work.
Hi!
Can you please try adding following code to Quick CSS as well
.avia_iconbox_title { overflow: visible; }
Best regards,
Yigit
I want to keep the text within the button rather than having it overflow. The overflow is showing, but there is no need for an overflow if the icon and text will center in the button.