Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
komal.savla CreditAttribution: komal.savla commentedHi,
Try to add width ( i.e width of the image) and margin: 0 auto; in your css
For example like this:
Thank You,
Komal