Can anyone offer assistance with this section of code?
HTML:
<div id="holder">
<div class="box"> </div>
<div class="box"> </div>
<div class="box"> </div>
<div class="box"> </div>
</div>
CSS:
#holder {
margin:auto;
text-align:center;
padding:10%;
}
.box {
width:240px;
height:300px;
background: red;
display:inline-block;
}
I am aiming for the entire container to be centered, but if there is an extra block at the bottom, I want it to align left. Is this feasible?