w3resource

Font Awesome Codepen Icon


Usage

<i class="fa fa-codepen"></i>

Out of the box


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
<i class="fa fa-codepen"></i>
</body>
</html>

Live Demo

See the Pen codepen by w3resource (@w3resource) on CodePen.

Large Icon


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
<i class="fa fa-codepen fa-5x"></i>
<!--use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes-->
</body>
</html>

Live Demo

See the Pen codepen-large by w3resource (@w3resource) on CodePen.

Change color


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<style type="text/css">
.fa_custom {
color: #0099CC
}
</style>
</head>
<body>
<i class="fa fa-codepen fa_custom"></i>
<i class="fa fa-codepen fa_custom fa-2x"></i>
<i class="fa fa-codepen fa_custom fa-3x"></i>
<i class="fa fa-codepen fa_custom fa-4x"></i>
</body>
</html>

Live Demo

See the Pen codepen-change-color by w3resource (@w3resource) on CodePen.


Previous: Font Awesome Chrome Icon
Next: Font Awesome Connectdevelop Icon



Follow us on Facebook and Twitter for latest update.