{"id":178809,"date":"2014-08-14T14:09:53","date_gmt":"2014-08-14T21:09:53","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=178809"},"modified":"2022-06-13T08:33:10","modified_gmt":"2022-06-13T15:33:10","slug":"columns","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/c\/columns\/","title":{"rendered":"columns"},"content":{"rendered":"\n

With just a few CSS rules, you can create a print-inspired layout that has the flexibility of the web. It\u2019s like taking a newspaper, but as the paper gets smaller, the columns will adjust and balance automatically allowing the content to flow naturally.<\/p>\n\n\n\n

.intro {\n  columns: 300px 2;\n}<\/code><\/pre>\n\n\n\n

The columns<\/code> property will accept column-count<\/code><\/a>, column-width<\/code><\/a>, or both properties.<\/p>\n\n\n\n

columns:  || ;<\/code><\/pre>\n\n\n\n

Using both column-count<\/code> and column-width<\/code> is recommended to create a flexible multi-column layout. The column-count<\/code> will act as the maximum number of columns, while the column-width<\/code> will dictate the minimum width for each column. By pulling these properties together, the multi-column layout will automatically break down into a single column at narrow browser widths without the need of media queries or other rules.<\/p>\n\n\n\n