James Clapson James Clapson - 1 year ago 73
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.

Answer Source

have you tried this?

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

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