Always left aligned [Solved]

Always left aligned [Solved] was created by ClaudioRomeo

Posted 2 months 3 weeks ago #71060
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:2 months 3 weeks ago by ClaudioRomeo
Last edit: 2 months 3 weeks ago by ClaudioRomeo. Reason: Marked as Solved

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

Replied by ced1870 on topic Always left aligned

Posted 2 months 3 weeks ago #71063
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

by ced1870

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

Replied by ClaudioRomeo on topic Always left aligned

Posted 2 months 3 weeks ago #71065
[url] www.marcofioretti.it/istituzionali/l-azienda-marco-fioretti [/url]
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.

Replied by ced1870 on topic Always left aligned

Posted 2 months 3 weeks ago #71066
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

by ced1870

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

Replied by ClaudioRomeo on topic Always left aligned

Posted 2 months 3 weeks ago #71067
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.

Replied by ced1870 on topic Always left aligned

Posted 2 months 3 weeks ago #71068
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

by ced1870

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

Time to create page: 0.677 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 818 guests and no members online