Skating
Skiing
Nordic Skiing
Snowboarding
Snowplow
Need to vertically align a series of icons, like in a list or navigation menu? We’ve included a fixed-width support styling for just those cases.
Add a class of fa-fw
on the HTML element referencing your icon to set one or more icons to the same fixed width. This is great to use when varying icon widths (e.g. a tall but skinny icon atop a wide but short icon) would throw off vertical alignment. For clarity in the following example, we’ve added a background color on the icon so you can see the fixed width and also bumped up the font-size of the parent element.
<!-- vertically aligning icons --> <div style="font-size: 2rem;"> <div><i class="fas fa-skating fa-fw" style="background:DodgerBlue"></i> Skating</div> <div><i class="fas fa-skiing fa-fw" style="background:SkyBlue"></i> Skiing</div> <div><i class="fas fa-skiing-nordic fa-fw" style="background:DodgerBlue"></i> Nordic Skiing</div> <div><i class="fas fa-snowboarding fa-fw" style="background:SkyBlue"></i> Snowboarding</div> <div><i class="fas fa-snowplow fa-fw" style="background:DodgerBlue"></i> Snowplow</div> </div>
<!-- setting all icons used in buttons to have the same width using fa-fw --><div> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-arrow-left fa-fw" title="Back"></i></span> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-arrow-right fa-fw" title="Forward"></i></span> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-sync fa-fw" title="Refresh"></i></span> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-house fa-fw" title="Home"></i></span> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-info fa-fw" title="Info"></i></span> <span style="border: 1px solid silver; border-radius: 0.25em; padding: 0.5em;"><i class="fas fa-download fa-fw" title="Download"></i></span></div>