Hey everyone,
i am fully aware of the fact that i can attach custom CSS classes to an image by using the “class: XX” attribute. However the given class is not applied to the <img>
tag in HTML but to the surrounding <figure>
class. So my attempt to horizontally center an image with margin: 0 auto
obviously did not work. Also applying text-align: center
to the figure-element did not work.
So i was wondering what is the best practice to center an image using the custom class-argument?
Thanks for your help, sorry for beginner CSS question!