I have following html
<div class="main-conteiner">
<div class="block">First</div>
<div class="block">Second</div>
</div>
And this css
.main-conteiner {
width: 600px;
margin: 0 auto;
}
.block {
width: 50%;
display: inline-block;
background: red;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
div {
margin: 0;
padding: 0;
}
I need to arrange both div
s in a same line. But instead of that it brakes down into two lines.
I cant figure out where I've done a mistake.