×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Question Centering image

More
3 years 11 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 11 months ago - 3 years 11 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 11 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 11 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.091 seconds