O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

box-lines

Values:

single | multiple

Initial value:

single

Applies to:

Elements with a display value of box or inline-box

Inherited:

No

Computed value:

As declared

Description:

Defines how flexible boxes are laid out if they are too wide to fix in a horizontal box (see box-orient). Given the value multiple, they will be laid out in as many “lines” as necessary to display them all. This is reminiscent of float layout when multiple floats cannot fit next to one another, though the mechanism is not exactly the same.

Examples:

div#gallery {box-lines: multiple;}

Note:

This property is from the 2009 version of the Flexible Box specification. It is expected to be deprecated by a new version of the specification, and potentially retired from browsers some time after.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required