Bonjour,
J’ai modifié les codes CSS ::before
background: none et j’ai ajouté background-image: url (…)
Mais lorsque je redimensionne, cela ne fonctionne pas comme je le souhaite.
Comme width : 60px et height : 60px ou max-width : 60px
Où est mon erreur ?
1 « J'aime »
J’ai fait 
.badge-category__wrapper .badge-category:before {
background: none;
border-radius: 2px;
margin-top: 4px;
width: 15px;
height: 15px;
min-width: 15px;
min-height: 15px;
background-image: url(IMG URL);
background-size: 15px 15px;
margin-right: .5em;
}
.badge-category__wrapper .badge-category.--has-parent:before {
background: none;
border-radius: 2px;
margin-top: 4px;
width: 15px;
height: 15px;
min-width: 15px;
min-height: 15px;
background-image: url(IMG URL);
background-size: 15px 15px;
margin-right: .5em;
}
1 « J'aime »