Home>

When using the web font icon, the vertical position will be slightly shifted if the character strings are arranged side by side.
What to do

#css
.mymenu {
    background-color: #fff;
    width: 150px;
    border: 2px solid # 665700;
    border-radius: 5px;
    margin: 50px 50px;
    font-size: 14px;
    line-height: 30px;
}
.mymenu .user {}
.mymenu .setting {}
.mymenu .signoff {}
.mymenu i {
    font-size: 20px;
    padding-left: 15px;
    padding-right: 5px;
}
.mymenu hr {
    height: 1px;
    border: 0;
    background-color: # 665700;
}
#html

    
        <i>account_circle</i>User settings
    
    
        <i></i>Settings 
    
    <hr>
    <i></i>Logout 


  • Answer # 1

    Inline elements can be centered vertically withvertical-align: middle;.

    . mymenu i {
        font-size: 20px;
        padding-left: 15px;
        padding-right: 5px;
        vertical-align: middle;/* Add * /
    }