i.icon { display: inline-block; width: 16px; height: 16px; background-position: center; background-size: contain; vertical-align: middle; margin-right: 5px; background-repeat: no-repeat; } i.icon.mastodon { background-image: url(../media/icons/mastodon.svg); } i.icon.matrix { background-image: url(../media/icons/matrix.svg); }