Make Font Awesome icons in a circle?

前端 未结 14 1331
情书的邮戳
情书的邮戳 2020-12-02 04:38

I am using font awesome on some project but I have some things that I want to do with font awesome icons, I can easily call an icon like this:



        
14条回答
  •  盖世英雄少女心
    2020-12-02 05:29

    Update: Rather use flex.

    If you want precision this is the way to go.

    Fiddle. Go Play -> http://jsfiddle.net/atilkan/zxjcrhga/

    Here is the HTML

    
    

    Here is the CSS

    .sosial-links a{
        display: block;
        float: left;
        width: 36px;
        height: 36px;
        border: 2px solid #909090;
        border-radius: 20px;
        margin-right: 7px; /*space between*/
    
    } 
    .sosial-links a i{
        padding: 12px 11px;
        font-size: 20px;
        color: #909090;
    }
    

    Have Fun

提交回复
热议问题