plugin pdf_fp

  • wroom69
  • Topic Author
  • Visitor
  • Visitor
8 years 10 months ago #3657 by wroom69
plugin pdf_fp was created by wroom69
Bonjour,
J'ai installé le plugin et je n'arrive pas à center l'image.(éditeur jce)
image pdf ici

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

More
8 years 10 months ago #3658 by gmapfp
Replied by gmapfp on topic plugin pdf_fp
Bonjour,

Le but est de centrer une balise div.
Il faut donc lui ajouter un : margin: auto

En claire :
Ton code
<a href="/pdfs/ab.pdf" target="_blank">
<div class="img_caption none" style="float: none; width: 36px;">
<img class="caption" style="display: block; margin-left: auto; margin-right: auto;" title="Inscrits" src="/components/com_plugin_pdffp/icon_pdf.gif" alt="Liste des inscrits">
<p class="img_caption">Inscrits</p>
</div>
</a>

Le code modifié
<a href="/pdfs/ab.pdf" target="_blank">
<div class="img_caption none" style="float: none; width: 36px;margin: auto;">
<img class="caption" style="display: block; margin-left: auto; margin-right: auto;" title="Inscrits" src="/components/com_plugin_pdffp/icon_pdf.gif" alt="Liste des inscrits">
<p class="img_caption">Inscrits</p>
</div>
</a>

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

  • wroom69
  • Topic Author
  • Visitor
  • Visitor
8 years 10 months ago - 8 years 10 months ago #3659 by wroom69
Replied by wroom69 on topic plugin pdf_fp
Bonjour,
Merci, mais la classe "img_caption none" se trouve dans quel fichier ?
J'ai tenté dans mon fichier custom.css au niveau du template de rajouter
/*Centrer image pdf*/
.img_caption none{
margin: auto;
}
sans résultat.
[EDIT]->j'ai changé la classe et ça marche
.img_caption {
margin: auto;
}
Last edit: 8 years 10 months ago by wroom69.

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

Time to create page: 0.182 seconds
Powered by Kunena Forum
FaLang translation system by Faboba