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://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.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://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.2