Answers for "can you add icon with src html"

1

how to use i tag for custom icons, how to make custom icon

.main {
  display: inline-block;
  border: 2px solid grey;
  padding: 1rem;
  border-radius: 50%;
  .sub-main {
  i{
    background: url('./../assets/socialicon/facebook (1).svg');
    height: 1.2rem;
    width: 1.2rem;
    display: block;
    background-size: contain;
  }
  }
}


<div class="main">
  <div class="sub-main">
    <i>

    </i>

  </div>
</div>
Posted by: Guest on April-29-2020

Code answers related to "can you add icon with src html"

Browse Popular Code Answers by Language