{"id":178790,"date":"2014-08-14T14:11:05","date_gmt":"2014-08-14T21:11:05","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=178790"},"modified":"2020-08-07T09:05:44","modified_gmt":"2020-08-07T16:05:44","slug":"column-count","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/c\/column-count\/","title":{"rendered":"column-count"},"content":{"rendered":"\n

If you need an exact numbers of columns when designing a multi-column layout, use column-count<\/code>.<\/p>\n\n\n\n

.lead {\n  column-count: 3;\n }<\/code><\/pre>\n\n\n\n

Given the number of columns, the browser will evenly distribute the content in exactly that number of columns.<\/p>\n\n\n\n

This property can also be used in the shorthand for columns<\/code><\/a> and can be used in tandem with column-width<\/code>. When both properties are declared column-count<\/code> is the maximum number of columns.<\/p>\n\n\n

Values<\/h3>\n\n\n

column-count<\/code> can be auto<\/code> or an integer.<\/p>\n\n\n\n

Use auto<\/code> if you are also using column-width<\/code>. Think of it as a way of telling the browser, to let column-width<\/code> take the lead.<\/p>\n\n\n\n

The integer, also known as the number of columns, must be greater than or equal to 0.<\/p>\n\n\n\n