Tutoriel retour

Comment rendre des images responsive dans un même format?

Comment rendre des images responsive dans un même format?

1 - dans du style, créer les classes.

<style>
figure {
    display: block;
    margin: 10px;
    padding-right:0px;
    overflow: hidden;
        position:relative;
        float:left;
    width: 200px;
    max-height: 200px;
background: rgba(255,255,255,1);
-webkit-box-shadow: inset 0px 0px 5px 0px rgba(255,255,255,1);
-moz-box-shadow: inset 0px 0px 5px 0px rgba(255,255,255,1);
box-shadow: inset 0px 0px 5px 0px rgba(255,255,255,1);
border-radius: 7px;
 border: 2px solid #f1f1f1;
-webkit-box-shadow: 0px 2px 5px 4px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 2px 5px 4px rgba(0,0,0,0.75);
box-shadow: 0px 2px 5px 4px rgba(0,0,0,0.75);
}

figure:hover {
background: white;
cursor: pointer;
-webkit-box-shadow: 0px 2px 5px 4px rgba(255,255,255,1);
-moz-box-shadow: 0px 2px 5px 4px rgba(255,255,255,1);
box-shadow: 0px 2px 5px 4px rgba(255,255,255,1);
 border: 2px solid black;
}

figure img {
    width: 200px;
    position: relative;
    vertical-align: middle;
height: 200px;
}

figure:hover img {
    padding-right:0px;
    opacity: 1;
transform: scale(1.3);
}
</style>

***************************************************

2 - Créer un container.

<div id="maincontainer" style="background: #f1f1f1; border: 0px;">

*******************************************************

3 - Créer les blocs images.

<figure>
<a data-toggle="modal" data-target="#SupportModal">
<h2 id="title"><span class="icon-holder"><i class="c-brown-500 ti-headphone"></i> </span>Support</h2>

<img src="https://www.mowxml.org/cloud-team/core/admin/theme/images/helpdesk96.png" class="responsive" width="200px" height"200px">

</figure>
</a>

****************************************************

4 - option: créer un bouton avec un bloc modal. 

<div class="modal fade" id="FAQModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                            <div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
<h2 class="modal-title" id=""><span class="icon-holder"><i class="c-brown-500 ti-support"></i> </span>FAQ</h2>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
        </div>
****************************************************
ne pas oublier de fermer le div container et les autres div concernées.
exemple:

<div class="row">
    <div class="col-md-12" style="border: 0px;">
        <div class="bgc-white bd bdrs-3 p-20 mB-20" style="border: 0px;">
            <div class="row" style="border: 0px;">


            <div class="masonry-item col-md-12" style="border: 0px;">
                <div class="bgc-white bd bdrs-3 p-20 mB-20" style="border: 0px;">

            <div id="maincontainer" style="background: #f1f1f1; border: 0px;">