Ciao,
Ho modificato i codici CSS di ::before
background: none e ho aggiunto background-image: url (…)
Ma quando lo ridimensiono, non funziona come vorrei.
Come width: 60px e height: 60px o max-width: 60px
Dove sto commettendo un errore?
Ciao,
Ho modificato i codici CSS di ::before
background: none e ho aggiunto background-image: url (…)
Ma quando lo ridimensiono, non funziona come vorrei.
Come width: 60px e height: 60px o max-width: 60px
Dove sto commettendo un errore?
Ho fatto ![]()
.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;
}