Le site e-commerce construit en PHP. Dans la page de liste des produits, le produit et les noms ne sont pas alignés. Comment puis-je réparer cela? Ajouté un script J'espère que cela aidera. J'ai ajouté la hauteur de l'image mais la qualité de l'image n'est pas bonne.Titre du produit alignement
HTML:
<script>
/* -- product list images -- */
.product-image img.attachment-shop_catalog,
.product-image img.attachment-shop_single,
.product-image img.attachment-shop_thumbnail {
display: block;
min-width: 100%; }
.product-image {
position: relative;
display: block;
overflow: hidden; }
.product-image .front-image {
display: block;
width: auto;
height: auto; }
.product-image .front-image img {
min-width: 99.9%;
max-width: 101% !important;
width: auto !important;
height: auto !important;
display: block; }
.product-image .back-image img {
min-width: 100%;
opacity: 0;
position: absolute;
top: 0;
width: auto !important;
height: auto !important;
display: block;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden; }
.product-image:hover .back-image img {
opacity: 1; }
</script>
<li class="product-small grid1 grid-normal">
\t \t \t \t \t \t \t <div class="inner-wrap">
\t \t \t \t \t \t \t \t <a href="eyewear_details.php?Id=<?php echo $Frame_id?>">
\t \t \t \t \t \t \t \t \t <div class="product-image hover_fade_in_back">
\t \t \t \t \t \t \t \t \t \t <div class="front-image">
<?php if($Color1Image!="" && file_exists(FRAME_IMAGES_FRONT.$Color1Image)):?>
<img width="247" height="116" alt="ete thecle-cygne" class="attachment-shop_catalog wp-post-image" src="<?php
echo PHP_THUMB_PATH_FRONT.urlencode($Color1Image).IMAGE_PROPERTY5;
?>">
<?php else:
echo '<img width="247" height="116" alt="ete thecle-cygne" class="attachment-shop_catalog wp-post-image" src="no-image-icon-11.png" style="
height: 90px !important;"/>';
</div>
\t \t \t \t \t \t \t \t \t </div><!-- end product-image -->
\t \t \t \t \t \t \t \t </a>
\t \t \t \t \t \t \t \t <div class="info style-grid1">
\t \t \t \t \t \t \t \t \t <div class="text-center">
\t \t \t \t \t \t \t \t
\t \t \t \t \t \t \t \t \t <a href="eyewear_details.php?Id=<?php echo $Frame_id?>"><p class="name"><?php echo $FrameName?></p></a>
\t \t \t \t \t \t \t \t \t </div><!-- text-center -->
\t \t \t \t \t \t \t \t \t <div class="clear"></div> \t
\t \t \t \t \t \t \t \t </div><!-- end info --> \t
\t \t \t \t \t \t \t </div> <!-- .inner-wrap -->
\t \t \t \t \t \t </li><!-- li.product-small -->
Pouvez-vous partager votre code –
Comment pouvons-nous dire avec un exemple du code HTML et CSS? –
S'il vous plaît partagez votre code –