font awesme size change i css code example

Example 1: change font awesome icon size

<i class="fas fa-camera fa-xs"></i>
<i class="fas fa-camera fa-sm"></i>
<i class="fas fa-camera fa-lg"></i>
<i class="fas fa-camera fa-2x"></i>
<i class="fas fa-camera fa-3x"></i>
<i class="fas fa-camera fa-5x"></i>
<i class="fas fa-camera fa-7x"></i>
<i class="fas fa-camera fa-10x"></i>

Example 2: font size css

.class {
	font-size: 12px;
}

Example 3: css change text size

p {
	font-size: 150% /*px, cm, in, etc.*/; 
}

Example 4: resize font awesome

<i class="fas fa-expand-alt"></i>

Tags:

Html Example