Whatsapp font awesome icon Usage,CSS Class Name,SVG & CSS Content Code

Whatsapp font awesome icon css class name is fa-whatsapp and CSS Content Code is \f232.

Whatsapp font awesome icon is part of brands icons.

Whatsapp font awesome icon usage

We can display Whatsapp font awesome icon using 3 different ways depending upon our requirement.

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Whatsapp font awesome icon CSS class name

To display Whatsapp font awesome icon, add predefined class name i.e.,fa-whatsapp (with prefix fa-) to the i tag.

And we need to add corresponding font awesome icon style for the Whatsapp icon.

Whatsapp icon has 1 icon style i.e.,brands. We need to append icon style class fab.

<i class='fab fa-whatsapp'></i>

Output:

Whatsapp font awesome icon CSS Content Code

We can display Whatsapp font awesome icon using it’s CSS Content Code \f232

Use the following HTML code

<li><span class='Whatsapp fontawesomeicon'></span>Whatsapp</li>

Apply CSS code

<style> 
.fontawesomeicon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
 }

.Whatsapp::before {
   font: var(--fa-font-brands);
    content: ' \f232';
 }</style>

Output:

  • Whatsapp
  • For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/

    Whatsapp font awesome icon SVG

    Use the following icon SVG to display Whatsapp font awesome icon.

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>
     Whatsapp displayed using SVG</p>
    

    Apply CSS code

    
      <style>
        .fontawesomesvg {width: 1em;
          height: 1em;
          vertical-align: -.125em;
        }
      </style>
    
    

    Output:

    This Whatsapp displayed using SVG

    Change Whatsapp font awesome icon size

    To increase Whatsapp font awesome icon size, use the fa-lg(33 % increase), fa-2x, fa-3x, fa-4x, or fa-5x classes along with icon class \f232. Increase in icon size will be relative to their parent container.

    <i class='fab fa-whatsapp fa-lg'>fa-lg</i><br/>
    <i class='fab fa-whatsapp fa-2x'>fa-2x</i><br/>
    <i class='fab fa-whatsapp fa-3x'>fa-3x</i><br/>
    <i class='fab fa-whatsapp fa-4x'>fa-4x</i><br/>
    <i class='fab fa-whatsapp fa-5x'>fa-5x</i><br/>
    
    

    Output:

    fa-lg
    fa-2x
    fa-3x
    fa-4x
    fa-5x

    Whatsapp font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

    For example Whatsapp icon and home icon may not have same height and width.

    So to display two icons with fixed width and height we can use fa-fw class.

    <i style='border:1px solid;' class='fab fa-whatsapp fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fab fa-whatsapp fa-3x'></i>Normal<br/>
    <i style='border:1px solid;' class='fas fa-home fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-home fa-3x'></i>Normal<br/>
    
    

    Output:

    Fixed WidthNormal
    Fixed WidthNormal

    Whatsapp font awesome icon Border

    To add border to Whatsapp font awesome icon, use fa-border class.

    <i class='fab fa-whatsapp fa-border fa-3x'></i>
    

    Output:

    Pull Whatsapp font awesome icon To the left

    To pull Whatsapp icon to the left of the container use fa-pull-left class.

    <div style='width: 200px;'>
    <i class='fab fa-whatsapp fa-pull-left fa-3x'></i>
      ... The text after Whatsapp Icon will be displayed on the right side of the icon.
    </div>
    <div style = 'clear: both;'></div>
    

    Output:

    ... The text after Whatsapp Icon will be displayed on the right side of the icon.

    Pull Whatsapp font awesome icon To the left

    To pull Whatsapp icon to the right of the container use fa-pull-right class.

    <div style='width: 200px;'>
    <i class='fab fa-whatsapp fa-pull-right fa-3x'></i>
      ... The text after Whatsapp Icon will be displayed on the left side of the icon.
    </div>
    <div style = 'clear: both;'></div>
    

    Output:

    ... The text after Whatsapp Icon will be displayed on the left side of the icon.

    Animate Whatsapp font awesome icon

    To animate Whatsapp font awesome icon, use fa-spin class.

    <i class='fab fa-whatsapp fa-spin fa-3x'></i>
    

    Output:

    Animate Whatsapp font awesome icon with steps

    While animating the font awesome icon,We can rotate Whatsapp icon in 8 steps instead of uniform rotation.

    We can use fa-pulse icon along with fa-spin class.

    <i class='fab fa-whatsapp fa-spin fa-pulse fa-3x'></i>
    

    Output:

    Rotate Whatsapp font awesome icon

    To rotate Whatsapp font awesome icon, Use fa-rotate-x class

    Where ‘x’ represents degree of rotation.

    <div>
    <i class='fab fa-whatsapp fa-3x'>R</i>normal<br/><br/>
    <i class='fab fa-whatsapp fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/> 
    <i class='fab fa-whatsapp fa-rotate-180  fa-3x'>R</i> fa-rotate-180<br/><br/> 
    <i class='fab fa-whatsapp fa-rotate-270 fa-3x'>R</i> fa-rotate-270<br/><br/>
    </div>
    

    Output:

    Rnormal

    R fa-rotate-90

    R fa-rotate-180

    R fa-rotate-270

    Flip Whatsapp font awesome icon

    To flip Whatsapp font awesome icon horizontally and vertically use fa-flip-horizontal and fa-flip-vertical classes.

    <div>
    <i class='fab fa-whatsapp fa-3x'>F</i> Normal <br>
    <i class='fab fa-whatsapp fa-flip-horizontal fa-3x'>F</i> fa-flip-horizontal<br>
    <i class='fab fa-whatsapp fa-flip-vertical fa-3x'>F</i> fa-flip-vertical<br>
    </div>
    

    Output:

    F Normal
    F fa-flip-horizontal
    F fa-flip-vertical

    Combine Whatsapp font awesome icon with other font awesome icons

    In font awesome icons,using stacking we can combine multiple icons and display it as one icon.

    To do that use the fa-stack class on the parent, the fa-stack-1x for the regularly sized icon, and fa-stack-2x for the larger icon.

    And use class fa-inverse for an alternative icon color.

    In the below example, I am displaying Whatsapp font awesome icon on top of icons like fa-square,fa-circle and fa-ban.

    And used fa-inverse in the second example to invert the color of the icon.

    <div>
        <span class='fa-stack fa-lg'>
            <i class='far fa-square fa-stack-2x'></i>
            <i class='fab fa-whatsapp fa-stack-1x'></i>
        </span>
          Whatsapp on fa-square<br>
        <span class='fa-stack fa-lg'>
            <i class='fas fa-circle fa-stack-2x'></i>
            <i class='fab fa-whatsapp fa-stack-1x fa-inverse'></i>
        </span>
          Whatsapp on fa-circle<br>
    
        <span class='fa-stack fa-lg'>
            <i class='fab fa-whatsapp fa-stack-1x'></i>
            <i class='fas fa-ban fa-stack-2x'></i>
        </span>
          Whatsapp on fa-ban
    </div>
    

    Output:

    Whatsapp on fa-square
    Whatsapp on fa-circle
    Whatsapp on fa-ban
    Avatar

    Arunkumar Gudelli

    Liked this post? Subscribe