before css font awesome

Solutions on MaxInterview for before css font awesome by the best coders in the world

showing results for - "before css font awesome"
Guilhem
29 Jul 2018
1css code
2---------
3.wrapper {
4    width:160px;
5    margin:20% auto;
6}
7
8p {
9  border:1px solid #666;
10  padding:12px 25px;
11}
12
13p.email:before,
14p.mobile:before{
15   font-family: FontAwesome;
16   display: inline-block;
17   padding-right: 6px;
18   vertical-align: middle;
19}
20
21p.mobile:before {
22   content: "\f095";
23}
24
25p.email:before {
26   content: "\f003";
27}
28
29html code
30------------
31<div class="container">
32    <div class="row wrapper">
33       <p class="mobile">Mobile No</p>
34       <p class="email">Email</p>
35    </div>
36</div>