WordPress 7.1 introduces a minWidth dimension block support, letting blocks opt in to setting a minimum width. This follows the same pattern as the existing minHeight support.

GitHub issue: #76525 | PR: #76949

Background

Blocks already support several dimension properties: height, minHeight, and width. There was no matching control for a minimum width. Setting a floor on a block’s width is a common CSS need. For example, you may want a container or layout element to stay usable and not collapse below a certain size on smaller viewports.

Until now, achieving this required custom CSS or a custom block style,

Click here to continue reading this article.