.mdi { display: inline-block; width: 24px; height: 24px; } .mdi.cart-outline { background-image: url("img/cart-outline.svg"); }