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

Biohazard font awesome icon css class name is fa-biohazard and CSS Content Code is \f780.

Biohazard font awesome icon is part of solid icons.

Biohazard font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Biohazard font awesome icon CSS class name

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

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

Biohazard icon has 1 icon style i.e.,solid. We need to append icon style class fas.

<i class='fas fa-biohazard'></i>

Output:

Biohazard font awesome icon CSS Content Code

We can display Biohazard font awesome icon using it’s CSS Content Code \f780

Use the following HTML code

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

Apply CSS code

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

.Biohazard::before {
   font: var(--fa-font-solid);
    content: ' \f780';
 }</style>

Output:

.fontawesomeicon::before { display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; } .Biohazard::before { font: var(--fa-font-solid); content: ' \f780'; }
  • Biohazard
  • For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/

    Biohazard font awesome icon SVG

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

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 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="M173.2 0c-1.8 0-3.5 .7-4.8 2C138.5 32.3 120 74 120 120c0 26.2 6 50.9 16.6 73c-22 2.4-43.8 9.1-64.2 20.5C37.9 232.8 13.3 262.4 .4 296c-.7 1.7-.5 3.7 .5 5.2c2.2 3.7 7.4 4.3 10.6 1.3C64.2 254.3 158 245.1 205 324s-8.1 153.1-77.6 173.2c-4.2 1.2-6.3 5.9-4.1 9.6c1 1.6 2.6 2.7 4.5 3c36.5 5.9 75.2 .1 109.7-19.2c20.4-11.4 37.4-26.5 50.5-43.8c13.1 17.3 30.1 32.4 50.5 43.8c34.5 19.3 73.3 25.2 109.7 19.2c1.9-.3 3.5-1.4 4.5-3c2.2-3.7 .1-8.4-4.1-9.6C379.1 477.1 324 403 371 324s140.7-69.8 193.5-21.4c3.2 2.9 8.4 2.3 10.6-1.3c1-1.6 1.1-3.5 .5-5.2c-12.9-33.6-37.5-63.2-72.1-82.5c-20.4-11.4-42.2-18.1-64.2-20.5C450 170.9 456 146.2 456 120c0-46-18.5-87.7-48.4-118c-1.3-1.3-3-2-4.8-2c-5 0-8.4 5.2-6.7 9.9C421.7 80.5 385.6 176 288 176S154.3 80.5 179.9 9.9c1.7-4.7-1.6-9.9-6.7-9.9zM336 272c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM181.7 417.6c6.3-11.8 9.8-25.1 8.6-39.8c-19.5-18-34-41.4-41.2-67.8c-12.5-8.1-26.2-11.8-40-12.4c-9-.4-18.1 .6-27.1 2.7c7.8 57.1 38.7 106.8 82.9 139.4c6.8-6.7 12.6-14.1 16.8-22.1zM288 64c-28.8 0-56.3 5.9-81.2 16.5c2 8.3 5 16.2 9 23.5c6.8 12.4 16.7 23.1 30.1 30.3c13.3-4.1 27.5-6.3 42.2-6.3s28.8 2.2 42.2 6.3c13.4-7.2 23.3-17.9 30.1-30.3c4-7.3 7-15.2 9-23.5C344.3 69.9 316.8 64 288 64zM426.9 310c-7.2 26.4-21.7 49.7-41.2 67.8c-1.2 14.7 2.2 28.1 8.6 39.8c4.3 8 10 15.4 16.8 22.1c44.3-32.6 75.2-82.3 82.9-139.4c-9-2.2-18.1-3.1-27.1-2.7c-13.8 .6-27.5 4.4-40 12.4z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 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="M173.2 0c-1.8 0-3.5 .7-4.8 2C138.5 32.3 120 74 120 120c0 26.2 6 50.9 16.6 73c-22 2.4-43.8 9.1-64.2 20.5C37.9 232.8 13.3 262.4 .4 296c-.7 1.7-.5 3.7 .5 5.2c2.2 3.7 7.4 4.3 10.6 1.3C64.2 254.3 158 245.1 205 324s-8.1 153.1-77.6 173.2c-4.2 1.2-6.3 5.9-4.1 9.6c1 1.6 2.6 2.7 4.5 3c36.5 5.9 75.2 .1 109.7-19.2c20.4-11.4 37.4-26.5 50.5-43.8c13.1 17.3 30.1 32.4 50.5 43.8c34.5 19.3 73.3 25.2 109.7 19.2c1.9-.3 3.5-1.4 4.5-3c2.2-3.7 .1-8.4-4.1-9.6C379.1 477.1 324 403 371 324s140.7-69.8 193.5-21.4c3.2 2.9 8.4 2.3 10.6-1.3c1-1.6 1.1-3.5 .5-5.2c-12.9-33.6-37.5-63.2-72.1-82.5c-20.4-11.4-42.2-18.1-64.2-20.5C450 170.9 456 146.2 456 120c0-46-18.5-87.7-48.4-118c-1.3-1.3-3-2-4.8-2c-5 0-8.4 5.2-6.7 9.9C421.7 80.5 385.6 176 288 176S154.3 80.5 179.9 9.9c1.7-4.7-1.6-9.9-6.7-9.9zM336 272c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM181.7 417.6c6.3-11.8 9.8-25.1 8.6-39.8c-19.5-18-34-41.4-41.2-67.8c-12.5-8.1-26.2-11.8-40-12.4c-9-.4-18.1 .6-27.1 2.7c7.8 57.1 38.7 106.8 82.9 139.4c6.8-6.7 12.6-14.1 16.8-22.1zM288 64c-28.8 0-56.3 5.9-81.2 16.5c2 8.3 5 16.2 9 23.5c6.8 12.4 16.7 23.1 30.1 30.3c13.3-4.1 27.5-6.3 42.2-6.3s28.8 2.2 42.2 6.3c13.4-7.2 23.3-17.9 30.1-30.3c4-7.3 7-15.2 9-23.5C344.3 69.9 316.8 64 288 64zM426.9 310c-7.2 26.4-21.7 49.7-41.2 67.8c-1.2 14.7 2.2 28.1 8.6 39.8c4.3 8 10 15.4 16.8 22.1c44.3-32.6 75.2-82.3 82.9-139.4c-9-2.2-18.1-3.1-27.1-2.7c-13.8 .6-27.5 4.4-40 12.4z"/></svg>
     Biohazard displayed using SVG</p>
    

    Apply CSS code

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

    Output:

    .fontawesomesvg {width: 1em; height: 1em; vertical-align: -.125em; }

    This Biohazard displayed using SVG

    Change Biohazard font awesome icon size

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

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

    Output:

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

    Biohazard font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

    For example Biohazard 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='fas fa-biohazard fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-biohazard 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

    Biohazard font awesome icon Border

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

    <i class='fas fa-biohazard fa-border fa-3x'></i>
    

    Output:

    Pull Biohazard font awesome icon To the left

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

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

    Output:

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

    Pull Biohazard font awesome icon To the left

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

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

    Output:

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

    Animate Biohazard font awesome icon

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

    <i class='fas fa-biohazard fa-spin fa-3x'></i>
    

    Output:

    Animate Biohazard font awesome icon with steps

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

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

    <i class='fas fa-biohazard fa-spin fa-pulse fa-3x'></i>
    

    Output:

    Rotate Biohazard font awesome icon

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

    Where ‘x’ represents degree of rotation.

    <div>
    <i class='fas fa-biohazard fa-3x'>R</i>normal<br/><br/>
    <i class='fas fa-biohazard fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/> 
    <i class='fas fa-biohazard fa-rotate-180  fa-3x'>R</i> fa-rotate-180<br/><br/> 
    <i class='fas fa-biohazard 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 Biohazard font awesome icon

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

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

    Output:

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

    Combine Biohazard 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 Biohazard 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='fas fa-biohazard fa-stack-1x'></i>
        </span>
          Biohazard on fa-square<br>
        <span class='fa-stack fa-lg'>
            <i class='fas fa-circle fa-stack-2x'></i>
            <i class='fas fa-biohazard fa-stack-1x fa-inverse'></i>
        </span>
          Biohazard on fa-circle<br>
    
        <span class='fa-stack fa-lg'>
            <i class='fas fa-biohazard fa-stack-1x'></i>
            <i class='fas fa-ban fa-stack-2x'></i>
        </span>
          Biohazard on fa-ban
    </div>
    

    Output:

    Biohazard on fa-square
    Biohazard on fa-circle
    Biohazard on fa-ban