Font Awesome icons using with CSS

HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> <link rel="stylesheet" href="style.css"> </head> <body> <div class="element"> </div> </body> </html>
CSS
*{ margin: 0; padding: 0; } body{ background: #272822; } .element { padding: 50px; width: 500px; height: 500px; background: #fff; margin: 50px auto; position: relative; } /*replace the content value with the corresponding value from the list below*/ .element:before { content: "\f08a"; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; /*--adjust as necessary--*/ color: red; font-size: 250px; position: absolute; top: 30%; left: 30%; }
JAVASCRIPT
Expand for more options Login