Topic: Center images in messages

How can I center my images in the messages ?
I did not find any bbcode for that. I mean that  [center] [/center] is displayed as text.

I tried with some css  for img and .entry-content img in the css file, but to no avail.

margin:0 auto;text-align:center;

Can anybody help me, please ?

Thank you in advance.

My PunBB is 1.4.4 and the skin derived from Oxygen.

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2

Re: Center images in messages

.entry-content img {
    vertical-align: text-top;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

Re: Center images in messages

Perfect, thanks !!!

https://agora.chauvigne.info/
PunBB 1.4.6
PHP: 8.0.24
Base de données    SQLite3 3.27.2