For some reason my divs won't center horizontally in a containing div:
.row {_x000D_
width: 100%;_x000D_
margin: 0 auto;_x000D_
}_x000D_
.block {_x000D_
width: 100px;_x000D_
float: left;_x000D_
}
_x000D_
<div class="row">_x000D_
<div class="block">Lorem</div>_x000D_
<div class="block">Ipsum</div>_x000D_
<div class="block">Dolor</div>_x000D_
</div>
_x000D_
And sometimes there is a row div with just one block div in it. What am I doing wrong?
This question is related to
css
Source: Stackoverflow.com