1ul {
2 -webkit-column-count: 3;
3 -moz-column-count: 3;
4 column-count: 3;
5}
1<!DOCTYPE html>
2<html>
3<head>
4<meta name="viewport" content="width=device-width, initial-scale=1">
5<style>
6* {
7 box-sizing: border-box;
8}
9
10/* Create three equal columns that floats next to each other */
11.column {
12 float: left;
13 width: 33.33%;
14 padding: 10px;
15 height: 300px; /* Should be removed. Only for demonstration */
16}
17
18/* Clear floats after the columns */
19.row:after {
20 content: "";
21 display: table;
22 clear: both;
23}
24</style>
25</head>
26<body>
27
28<h2>Three Equal Columns</h2>
29
30<div class="row">
31 <div class="column" style="background-color:#aaa;">
32 <h2>Column 1</h2>
33 <p>Some text..</p>
34 </div>
35 <div class="column" style="background-color:#bbb;">
36 <h2>Column 2</h2>
37 <p>Some text..</p>
38 </div>
39 <div class="column" style="background-color:#ccc;">
40 <h2>Column 3</h2>
41 <p>Some text..</p>
42 </div>
43</div>
44
45</body>
46</html>
47