Feature
Designer

White space property added to control text wrapping

We added a new advanced text styling option (from the “white-space” CSS property) that lets you control how text flows within an element of a fixed width.

Feature
Designer

White space property added to control text wrapping

We added a new advanced text styling option (from the “white-space” CSS property) that lets you control how text flows within an element of a fixed width.

Feature
Designer

White space property added to control text wrapping

We added a new advanced text styling option (from the “white-space” CSS property) that lets you control how text flows within an element of a fixed width.

If you’ve ever run into a situation where you have a fixed width element containing text, you might have noticed that you don’t have control over how that text flows within the element (by default, the text wraps to the next line).

For the technically inclined, the reason why this happens is because of the CSS property “white-space,” which, by default, is set to “normal”, and which, before today, you had no ability to control. With today’s change, the new “breaking” property in the typography section of the style panel lets you change this property for yourself, controlling how that text breaks.

The new “breaking” property in action.

In addition to the most straightforward option of “no wrap,” we’ve included all the other CSS options as well for the pros out there. To learn more about what each of these options enable, check out the interactive example in Mozilla’s documentation.

For a closer look at what the different white space options do, check out the interactive demo in Mozilla’s documentation.


Launched on
August 22, 2019
Category
Designer