Font awesome is not showing icon

后端 未结 30 1208
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 06:03

I am using Font Awesome and do not wish to add CSS with HTTP. I downloaded Font Awesome and included it in my code, yet Font Awesome is showing a bordered square box instead

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 06:42

    you need to put font-awesome file in css folder and change

    href="../css/font-awesome.css" to href="css/font-awesome.css"

    One more thing You can Replace this Font-awesome css File And and try this one

    .social-media{
      list-style-type: none;
      padding: 0px;
      margin: 0px;
    }
    
    .social-media li .fa{ 
      background: #fff;
      color: #262626;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      text-align:center;
      line-height:50px; 
    }
    
    .social-media .fa:hover { 
      box-shadow: 5px 5px 5px #000; 
    }
    
    .social-media .fa.fa-twitter:hover{
      background:#55acee;
      color:#fff;
     
    }
    
    .social-media .fa.fa-facebook:hover{
      background:#3b5998;
      color:#fff;
    }
    
    
    

提交回复
热议问题