fa-fw
Published Aug 1, 2022Updated Oct 14, 2022
Contribute to Docs
The fa-fw
class is used to set an icon to a fixed width. This is useful when vertically aligning icons in a list.
Example
<p>Using Fixed Width:</p><div><i class="fas fa-keyboard fa-fw"></i> Item 1</div><div><i class="fas fa-caret-right fa-fw"></i> Item 2</div><div><i class="fas fa-mobile-alt fa-fw"></i> Item 3</div><p>Without Fixed Width:</p><div><i class="fas fa-keyboard"></i> Item 1</div><div><i class="fas fa-caret-right"></i> Item 2</div><div><i class="fas fa-mobile-alt"></i> Item 3</div>
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Open Source on Codecademy
- Career path
Front-End Engineer
Front-end engineers work closely with designers to make websites beautiful, functional, and fast.Includes 34 CoursesWith Professional CertificationBeginner Friendly115 hours - Free course
Learn CSS
In this CSS tutorial, you’ll learn how to add CSS to visually transform HTML into eye-catching sites.Beginner Friendly6 hours