Answers for "font awesome :before"

CSS
0

before css font awesome

css code
---------
.wrapper {
    width:160px;
    margin:20% auto;
}

p {
  border:1px solid #666;
  padding:12px 25px;
}

p.email:before,
p.mobile:before{
   font-family: FontAwesome;
   display: inline-block;
   padding-right: 6px;
   vertical-align: middle;
}

p.mobile:before {
   content: "\f095";
}

p.email:before {
   content: "\f003";
}

html code
------------
<div class="container">
    <div class="row wrapper">
       <p class="mobile">Mobile No</p>
       <p class="email">Email</p>
    </div>
</div>
Posted by: Guest on July-23-2021
0

font awesome before css

.desc > ul > li::before{
    font-family: "Font Awesome 6 Free"; 
    font-weight: 400; 
    content: "\f058";
    padding-right: 0.5rem;
}
Posted by: Guest on March-27-2022

Browse Popular Code Answers by Language