James Clapson James Clapson - 1 month ago 4
CSS Question

Can't centre image in middle if span

I'm currently trying to centre these two images in the centre of the spans they are in however no matter what I do its just not having it! Any help would be appreciated!

The company I'm now working for uses wordpress and I'm very new to it.

Screenshot

The image linked is the elements that I'm working on.

Answer

have you tried this?

img.your-class {
display: block;
margin-left: auto;
margin-right: auto }
<img class="your-class" src="..." alt="...">