I am trying to create a three column layout for my website. When I use the column property and set it to "3" columns, it doesn't align correctly. Each column after the previous seems to be pushed down a little bit more. Is there a way to correct this? It does the same thing when I set the column count to "5" column and minimize the window
.widget-column {
columns: 5em 3;
/* Test with 5 columns */
-moz-columns: 5em 3;
/* Test with 5 columns */
-webkit-columns: 5em 3;
/* Test with 5 columns */
}
.widget-column p {
padding: 1em;
}
<div class="widget-column">
<p>Column</p>
<p>Column</p>
<p>Column</p>
<p>Column</p>
<p>Column</p>
</div>