The below code shows 3 columns on the left of the page, how to make these columns in the center?
css file
.column {
float: left;
width: 12%;
padding: 10px;
height: 300px;
}
.row:after {
content: "";
display: table;
clear: both;
}
html file
<div class="row">
<div class="column" style="background-color:#aaa;">
<h2>Column 1</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#bbb;">
<h2>Column 2</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#ccc;">
<h2>Column 3</h2>
<p>Some text..</p>
</div>
</div>
