If "Figure Caption" is set, you cannot center (right, left, justify) an image.
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="images/banners/white.png" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" /></p>
<figure class="image align-center"><img src="images/banners/white.png" alt="test" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" />
<figcaption>test</figcaption>
</figure>
<figure class="image align-right"><img src="images/banners/white.png" alt="test" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" />
<figcaption>test</figcaption>
</figure>
Joomla 5.0.2
php 8.2
Labels |
Added:
No Code Attached Yet
|
Just copy the HTML I showed in my first post and paste it, deleting everything else, into any Joomla article. And now open the page on the web.
I see this problem as in my old blog, which is upgraded to Joomla 5.0.2. And the same problem is inherent in the clean Joomla installation I did at your request, which contains all the default configurations.
Take a look. Open the source code of this page. Centering a single image in an article doesn't work::
<figure class="image align-center">
------
</figure>
This should be text-center, not align-center.
I there a template override?
I there a template override?
@chmst ,
...the same problem is inherent in the clean Joomla installation I did at your request, which contains all the default configurations.
This problem appeared on my blog that I upgraded to Joomla 4.
The same problem exists immediately after a new installation of Joomla 4 and an upgrade to Joomla 5.
If you don't believe me, I am willing to provide full access to the test site.
P.S. The Joomla admin panel did not show any notifications about new or old overrides.
This should be text-center, not align-center. I there a template override?
@chmst , I don't understand what this has to do with template overrides. The error shows itself in the text editor, in the default template Cassiopeia, on a newly installed Joomla, where there are no extensions from third-party developers.
The classes are for the figure container, not for the image
In your example: align-center is for vertically centering the image (not visible here), text-center is what you need
Questions like that are better in forum.loomla.org, Tere are many supporters who can help you. This is for bugs in Jooma core and so I'll close this here.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-22 08:27:33 |
Closed_By | ⇒ | chmst |
In your example: align-center is for vertically centering the image (not visible here), text-center is what you need
I agree.
This is the reason why the editor icon that misleads users is Joomla's problem and not the user's problem:
You are probably just now becoming aware of this incorrect problem, which does not testify in favor of the professionalism of Joomla developers:
@chmst :
This should be text-center, not align-center. I there a template override?
OK. If the development team has no desire to fix obvious problems, I have nothing to add. I wish you success on the Joomla user forum, @chmst .
Can you give me the path of this page?