James Clapson James Clapson - 6 months ago 30
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.


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


have you tried this?

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