I'm trying to create a two column layout. Instead of it I'm getting rows one above other.
This is my code:
.container {
width: 90%;
margin-left: 40px;
margin-right: 0;
padding: 0;
overflow: hidden;
}
#pre-header {
background-color: #CC4E0B;
color: white;
margin: -14px 0 -14px 0;
text-align: right;
}
.column {
width: 50%;
padding: 10px;
float: left;
}
.row:after {
content: "";
display: table;
clear: both;
}
<div id="pre-header">
<div class="container">
<div class="row">
<div class="column" style="background-color:#aaa;">
<h3>Columns1</h3>
</div>
<div class="column" style="background-color:#bbb;">
<h3>Column 2</h3>
</div>
</div>
</div>
</div>
Does anyone see what is going on wrong?