W3Schools.com

CSS Reference

CSS Reference
CSS Selectors
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
CSS Colors
CSS Color Values
CSS Color Names
CSS Color HEX
CSS3 Browser Support

CSS Properties

CSS3 box-lines Property

CSS Reference Complete CSS Reference

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 yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The box-lines property is not supported in any of the major browsers.


Definition and Usage

The box-lines property specifies whether columns will go onto a new line whenever it runs out of space in the parent box.

Tip: By default, a horizontal box will lay out its children in a single row, and a vertical box will lay out its children 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 will simply be considered overflow)
multiple The box is allowed to expand to multiple lines, to accommodate all of its children


CSS Reference Complete CSS Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE