×
Kunena 5.1.18 Released (30 Jun 2020)

The Kunena team has announce the arrival of Kunena 5.1.18 [K 5.1.18] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

Question Centering image

More
3 years 8 months ago #1 by velieb
Centering image was created by velieb
Hi ,
I would like to find a way to center the inserted images in discussion box (horizontally). I tried css,
.kmsgimage img {
display: block;
margin: 0 auto;
}
but did not wok. Any suggestions?
Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago - 3 years 8 months ago #2 by Nemo10
Replied by Nemo10 on topic Centering image
I simply highlight the image string/s and click on the align centre" button above

But it has to be done each time you insert.

Oh for a neat solution...
Last edit: 3 years 8 months ago by Nemo10.
The following user(s) said Thank You: velieb

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #3 by WolfgangOWL
Replied by WolfgangOWL on topic Centering image
I tried it with a template override but could not find a satisfying solution. The image was centered ok but the text beneath the image was centered, too. The text above the image was ok. So I modified upload.main.js and applied the CENTER bbcode on the uploaded image.

You need to replace the upload.main.js file in /components/com_kunena/template/crypsis/assets/js with the attached file. Don't forget to make a backup of the original file beforehand!

A page refesh and cache override may be necassary with your browser (Ctrl + F5 width Firefox).
Attachments:
The following user(s) said Thank You: velieb

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.234 seconds