- 
						Forum
			
		
 
					 
			- 
				Index
				
			
 
					 
			- 
				Other extension of Dev-GMapFP
				
			
 
					 
			- 
				General discussion
				
			
 
					 
			- 
				plugin pdf_fp
				
			
 
		
	
	
	
						plugin pdf_fp		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			wroom69
		
 
							- 
													Topic Author
											
 
		
		
					- 
				Visitor			
 
		
					- 
				
			 
		
			
		 
		
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 1929					
 
				
				
									- 
						Thank you received: 267					
 
				
				
				
									- 
											
 
				
									- 
											
 
				
				
									- 
											
 
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						10 years 5 months ago				#3658
		by gmapfp
	
	
		
			
			
				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			
 
		
					- 
				
			 
		
			
		 
		
			
	
						10 years 5 months ago		 -  10 years 5 months ago		#3659
		by wroom69
	
	
		
			
			
				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: 10 years 5 months ago  by wroom69.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		- 
						Forum
			
		
 
					 
			- 
				Index
				
			
 
					 
			- 
				Other extension of Dev-GMapFP
				
			
 
					 
			- 
				General discussion
				
			
 
					 
			- 
				plugin pdf_fp
				
			
 
		
	
	
	
	
		Time to create page: 0.031 seconds