01-05-2020, 13:01:45
tu as quoi : 3/4 tailles d'images diff. Le mieux c'est d'avoir 3,4 classes diff avec des dimensions relatives (% ou wx/wh).
ex:
ex:
Code :
<div class="petite-piece piece-cinq-centimes"></div>
<div class="petite-piece piece-vingt-centimes"></div>
<div class="billet billet-cinq-euros"></div>Code :
.petite-piece {
width: 5%;
height: 5%;
background-repeat: no-repeat;
}
.billet {
width: 5%;
height: 15%;
background-repeat: no-repeat;
}
.piece-cinq-centimes {
background: url('piece-cinq-centime.png');
}
.piece-vingt-centimes {
background: url('piece-cinq-centime.png');
}
.billet-cinq-euros {
background: url('cinq-euros.png');
}
