Tagged: , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #542584

    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?

    #542617

    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

    #542637

    Thanks for taking a look. Link in private content.

    #542714

    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

    #542749

    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.

    #542760

    Hi!

    Can you please try adding following code to Quick CSS as well

    .avia_iconbox_title { overflow: visible; }

    Best regards,
    Yigit

    #542774

    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.

    • This reply was modified 8 years, 11 months ago by 1039 Online.
    #542965

    Hi!

    Please add following code to Quick CSS as well

    .avia_iconbox_title {
        font-size: 16px;
    }

    do not forget to edit your element and change the font size of your span within iconbox title as well

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.