.icon { display: inline-block; min-width: 5px; min-height: 5px; background-position: center; background-size: contain; background-repeat: no-repeat; } .icon.icon-print { background-image: url('../images/icons/print.svg'); min-width: 20px; min-height: 20px; }
<i class="icon icon-print"></i>
Leave a Reply