Seemingly no matter what I do, I cannot center items of field type image, even though I can center normal images fine in the same block using margin: 0 auto.

How might I center field type image content?

Comments

komal.savla’s picture

Hi,

Try to add width ( i.e width of the image) and margin: 0 auto; in your css
For example like this:

.field field-name-field-b-image .field-item {
  width: 90px
  margin: 0 auto;
}

Thank You,
Komal