CSS3 box-lines property
Example
Specify that a div box is allowed to expand to multiple lines:
div
{
display:box;
box-orient:horizontal;
box-lines:multiple;
width:200px;
}
Try it »
Browser support





Currently no major browser supports the box-lines property.
Property definition and usage
The box-lines property specifies whether a new row or column is created when it runs out of space in the parent box.
Tip: By default, a horizontal box lays out its child elements in a single row, and a vertical box lays out its child elements in a single column.
| Default value: | single |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.boxLines="multiple" |
Syntax
box-lines: single|multiple;
| Value | Description |
|---|---|
| single | All child elements will be placed in a single row or column (elements that do not fit are only considered overflow) |
| multiple | The box is allowed to expand to multiple lines to fit all its child items |