How to wrap text of HTML button with fixed width with CSS?

Spread the love

Sometimes, we want to wrap text of HTML button with fixed width with CSS.

In this article, we’ll look at how to wrap text of HTML button with fixed width with CSS.

How to wrap text of HTML button with fixed width with CSS?

To wrap text of HTML button with fixed width with CSS, we set the white-space property.

For instance, we write

white-space: normal;

to break the words as normal text when text is being wrapped.

Conclusion

To wrap text of HTML button with fixed width with CSS, we set the white-space property.

Leave a Reply

Your email address will not be published.