CSS float left with margin auto on div?
css, html
Solution
try this is very help fully. i hop this is used full for you.
.gallary{
width:100%;
}
.gallary div{
vertical-align:top;
display:inline-block;
margin:0 auto;
}
Problem
hello friends can i set `float:left` with the `margin:auto` this is my html code ``` <div class='gallary'> <div>1</div> <div>2</div> <div>3</div> <div>4</div> </div> ``` my css code this is not working. ``` .gallary{ width:100%; } .gallary div{ float:left; margin:0 auto; } ``` please help. Thank you.