Giorgio Vitanza Giorgio Vitanza - 1 year ago 109
CSS Question

One img aligned on the left, and one on the center, both vertically aligned, inside same div

I am struggling aligning 2 imgs in the same div. I want one to be aligned on the left, and the other to be in the center. Any suggestion?

Answer Source

div {
    background: red;
    text-align: center;
div img{
    vertical-align: middle;
.left {
    <img src="//" class="left" />
    <img src="//" />

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download