Page 1 of 1

[CSS] Make Icon by class css after

Posted: Sun Mar 04, 2018 4:21 pm
by tthlan

Code: Select all

.icon=1::after {
    content: '\e955';
    background-color: #6399AE;
    color: #fff;
}

.icon-1::after, .icon-2::after {
    font-family: 'icomoon';
    font-size: 10px;
    display: block;
    position: absolute;
    right: -8px;
    top: -5px;
    width: 18px;
    height: 18px;
    border-radius: 10px;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    box-shadow: 0 0 0 2px #fff;
}