{"id":178799,"date":"2014-08-14T14:11:54","date_gmt":"2014-08-14T21:11:54","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=178799"},"modified":"2017-12-21T08:35:06","modified_gmt":"2017-12-21T15:35:06","slug":"column-span","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/c\/column-span\/","title":{"rendered":"column-span"},"content":{"rendered":"
In a multi-column layout, you can make elements expand across the columns with Assign The value of Set an element with The value See the Pen column-span example<\/a> by CSS-Tricks (@css-tricks<\/a>) on CodePen<\/a>.<\/p>\ncolumn-span<\/code>.<\/p>\n
h2 {\r\n -webkit-column-span: all;\r\n column-span: all;\r\n}<\/code><\/pre>\n
column-span<\/code> to an element inside of the multi-column layout to make it a spanning element<\/em>. The multi-column layout will resume with the next non-spanning element.<\/p>\n
column-span<\/code> can either be
all<\/code> or
none<\/code>.<\/p>\n
column-span: all<\/code> to make it span the columns.<\/p>\n
none<\/code> for the property is the kill switch for a spanning element. You might use this when working with media queries to tell the spanning element to stop spanning.<\/p>\n
Related Properties<\/h3>\n