LukeTerzich LukeTerzich - 1 year ago 57
HTML Question

aligning 3 images in HTML and CSS without table

Im trying to align 2 images and some text.
I do not want to use a table to do this.

Is there a way to do it using inline styling?
I would like them to all be equally spaced as well.

IMG 1 > TEXT > IMG 2

Hope this makes sense

Answer Source

You can do this with flexbox:


    <img />
    <img />


div {
    display: flex;
    justify-content: center;

More info: