Always left aligned [Solved]

More
9 months 1 week ago - 9 months 1 week ago #71060 by ClaudioRomeo
I sometimes use Mediabox to let visitors to play video o audio files. It works.
But I notice that the parent element (text or image, the one that has to be clicked) is always aligned to the left, even if I set it centered. In the editor it appears centered (correctly), but on the public page it is aligned to left.
If I delete the rel=lightbox parameter, it appears centered.
It seems to be a issue of Joomla 5, since with my old site in Joomla 3 it works perfectly. Or is it a matter of Mediabox?
Does anybody have an idea?

Counselor for better people in a better company
Last edit: 9 months 1 week ago by ClaudioRomeo. Reason: Marked as Solved

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

More
9 months 1 week ago #71063 by ced1870
Replied by ced1870 on topic Always left aligned
Hi
I have never seen that before, please give me the url of the page so that I can check the problem
CEd

Joomlack Webmaster and Developer

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

More
9 months 1 week ago #71065 by ClaudioRomeo
Replied by ClaudioRomeo on topic Always left aligned
www.marcofioretti.it/istituzionali/l-azienda-marco-fioretti
The Mediabox element is Guarda il video.
The attached image shows the correct alignment in the JCE editor.
Thank you!

Counselor for better people in a better company
Attachments:

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

More
9 months 1 week ago #71066 by ced1870
Replied by ced1870 on topic Always left aligned
I see the alignment on the paragraph, but the mediabox link is not in it
you can try to add this css rule in your page
Code:
.mediaboxck_cont { text-align: center; }

the problem seems related to a bad closing tag on a conditional content

L'articolo è in costruzione. Torna qui tra qualche giorno!!</p>


CEd

Joomlack Webmaster and Developer

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

More
9 months 1 week ago #71067 by ClaudioRomeo
Replied by ClaudioRomeo on topic Always left aligned
Thank you: your workaround works fine.
Here is the code for the conditional content:
Code:
<p>{show-else}L'articolo è in costruzione. Torna qui tra qualche giorno!!</p> <p>Il link sottostante è solo un test</p> <p style="text-align: center;"><a href="#" rel="lightbox" title="Titolo del video::Descrizione del video" data-dir="/images/Articoli/0001_0050/0017/Video/Sito_2013">Guarda il video</a></p> <p>{/show}</p>
It sounds to me correct.
Anyway, the problem arises even if no conditional content rule is defined.
Now I'm going to check it more thoroughly. Neither the title nor the description are shown.

Counselor for better people in a better company

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

More
9 months 1 week ago #71068 by ced1870
Replied by ced1870 on topic Always left aligned
I don't know how the condition works, but in your source code if you search for your text you will see the error

Anyway, the problem arises even if no conditional content rule is defined.

then please give me the url of an example so that I can check the other situation

Joomlack Webmaster and Developer

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

Time to create page: 0.231 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 590 guests and 4 members online