How do I wrap text in buttons [solved]

0 favourites
  • 1 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hi,

    Could someone help me with wrapping the text in a button, please?

    The user can input a word or a sentence. That text is placed in a button. The button is large enough for several words and two or three lines.

    I decided to use buttons, instead of text-objects, because of the CSS capabilities. However, using the CSS-commands 'display: wrap' or 'display: flex' and 'flex-wrap: wrap', doesn't seem to do the trick (even browsers that allow 'flex-wrap').

    So if anyone could help me out, I would appreciate it.



    It seems I was using the wrong CSS-code. Using 'white-space:normal' does the trick.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)