2016-10-24 1 views
0

J'ai utilisé le code ci-dessous pour faire quatre images redimensionnables mais je ne sais pas comment puis-je les placer au centre de la page. aidez-moi s'il vous plaît.Définir le groupe d'images redimensionnables au centre

<img src="..." style=" max-width: 25%; height: 100%; width: auto; "> 
<img src="..." style=" max-width: 25%; height: 100%; width: auto; "> 
<img src="..." style=" max-width: 25%; height: 100%; width: auto; "> 
<img src="..." style=" max-width: 25%; height: 100%; width: auto; "> 

Merci à l'avance.

Répondre

1

Utilisez cette

.center 
{ 
    text-align: center; 
} 

<div class="center"> 
     <img src="...." style=" max-width: 25%; height: 100%; width: auto; "> 
     <img src="...." style=" max-width: 25%; height: 100%; width: auto; "> 
     <img src="...." style=" max-width: 25%; height: 100%; width: auto; "> 
     <img src="...." style=" max-width: 25%; height: 100%; width: auto; "> 
</div> 
+0

Merci, mais cela a fonctionné puis-je faire avec css? –

+0

Modifié le code. Essayez celui-là. –

+0

Merci cela a fonctionné. –