Align divs inside div

You can align center divs inside another div.
Just don't use float:left in your divs
Use: display:inline-block instead

E.G.

.parent {
width:100%
margin-left:auto;
margin-right:auto;
text-align:center;
}

childs {
display:inline-block;
margin:10px;
padding:10px;
}

No comments:

Post a Comment