[Resolved] Fix mobile formatting issue in element

Home Forums Support [Resolved] Fix mobile formatting issue in element

Home Forums Support Fix mobile formatting issue in element

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

    Hi there,
    I have a category appear with some CSS to make to look a button. It looks fine here. However, on mobile here, it double stacks which ruins the look of the button.

    Is there a way to fix this?

    Kind regards,

    Will

    #1465734
    Leo
    Staff
    Customer Support

    Hi there,

    Decreasing the font size on the mobile is the only fix I can think of.

    #1465757
    William

    Hmm okay, probably will cause issues with Google text too small to read.

    Is there a CSS that could work for buttons that will look good, regardless if its one line or two lines?

    #1465768
    Leo
    Staff
    Customer Support

    I think you can try making the <div id="post_title"> like a button.

    #1465782
    William

    Sorry, I don’t follow what you mean by that?

    #1465820
    Leo
    Staff
    Customer Support

    Not sure if it’s going to work but maybe something like this?

    #post_title {
        display: inline-flex;
        background-color: #fff;
        border-radius: 23px;
    }

    If not then reducing the font size is probably the best solution. Or else you need to play with the CSS some more.

    #1468157
    William

    Yes inline-flex works a treat, thanks!

    #1468288
    Leo
    Staff
    Customer Support

    No problem 🙂

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