Centering floating divs within another div
First, remove the float attribute on the inner divs. Then, put text-align: center on the main outer div. And for the inner divs, use display: inline-block. Might also be wise to give them explicit widths too. <div style=”margin: auto 1.5em; display: inline-block;”> <img title=”Nadia Bjorlin” alt=”Nadia Bjorlin” src=”https://stackoverflow.com/questions/1269245/headshot.nadia.png”/> <br/> Nadia Bjorlin </div>