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

Cloudflare font awesome icon css class name is fa-cloudflare and CSS Content Code is \e07d.

Cloudflare font awesome icon is part of brands icons.

Cloudflare font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Cloudflare font awesome icon CSS class name

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

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

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

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

Output:

Cloudflare font awesome icon CSS Content Code

We can display Cloudflare font awesome icon using it’s CSS Content Code \e07d

Use the following HTML code

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

Apply CSS code

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

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

Output:

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

    Cloudflare font awesome icon SVG

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

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 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="M407.906,319.913l-230.8-2.928a4.58,4.58,0,0,1-3.632-1.926,4.648,4.648,0,0,1-.494-4.147,6.143,6.143,0,0,1,5.361-4.076L411.281,303.9c27.631-1.26,57.546-23.574,68.022-50.784l13.286-34.542a7.944,7.944,0,0,0,.524-2.936,7.735,7.735,0,0,0-.164-1.631A151.91,151.91,0,0,0,201.257,198.4,68.12,68.12,0,0,0,94.2,269.59C41.924,271.106,0,313.728,0,366.12a96.054,96.054,0,0,0,1.029,13.958,4.508,4.508,0,0,0,4.445,3.871l426.1.051c.043,0,.08-.019.122-.02a5.606,5.606,0,0,0,5.271-4l3.273-11.265c3.9-13.4,2.448-25.8-4.1-34.9C430.124,325.423,420.09,320.487,407.906,319.913ZM513.856,221.1c-2.141,0-4.271.062-6.391.164a3.771,3.771,0,0,0-3.324,2.653l-9.077,31.193c-3.9,13.4-2.449,25.786,4.1,34.89,6.02,8.4,16.054,13.323,28.238,13.9l49.2,2.939a4.491,4.491,0,0,1,3.51,1.894,4.64,4.64,0,0,1,.514,4.169,6.153,6.153,0,0,1-5.351,4.075l-51.125,2.939c-27.754,1.27-57.669,23.574-68.145,50.784l-3.695,9.606a2.716,2.716,0,0,0,2.427,3.68c.046,0,.088.017.136.017h175.91a4.69,4.69,0,0,0,4.539-3.37,124.807,124.807,0,0,0,4.682-34C640,277.3,583.524,221.1,513.856,221.1Z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 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="M407.906,319.913l-230.8-2.928a4.58,4.58,0,0,1-3.632-1.926,4.648,4.648,0,0,1-.494-4.147,6.143,6.143,0,0,1,5.361-4.076L411.281,303.9c27.631-1.26,57.546-23.574,68.022-50.784l13.286-34.542a7.944,7.944,0,0,0,.524-2.936,7.735,7.735,0,0,0-.164-1.631A151.91,151.91,0,0,0,201.257,198.4,68.12,68.12,0,0,0,94.2,269.59C41.924,271.106,0,313.728,0,366.12a96.054,96.054,0,0,0,1.029,13.958,4.508,4.508,0,0,0,4.445,3.871l426.1.051c.043,0,.08-.019.122-.02a5.606,5.606,0,0,0,5.271-4l3.273-11.265c3.9-13.4,2.448-25.8-4.1-34.9C430.124,325.423,420.09,320.487,407.906,319.913ZM513.856,221.1c-2.141,0-4.271.062-6.391.164a3.771,3.771,0,0,0-3.324,2.653l-9.077,31.193c-3.9,13.4-2.449,25.786,4.1,34.89,6.02,8.4,16.054,13.323,28.238,13.9l49.2,2.939a4.491,4.491,0,0,1,3.51,1.894,4.64,4.64,0,0,1,.514,4.169,6.153,6.153,0,0,1-5.351,4.075l-51.125,2.939c-27.754,1.27-57.669,23.574-68.145,50.784l-3.695,9.606a2.716,2.716,0,0,0,2.427,3.68c.046,0,.088.017.136.017h175.91a4.69,4.69,0,0,0,4.539-3.37,124.807,124.807,0,0,0,4.682-34C640,277.3,583.524,221.1,513.856,221.1Z"/></svg>
     Cloudflare displayed using SVG</p>
    

    Apply CSS code

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

    Output:

    This Cloudflare displayed using SVG

    Change Cloudflare font awesome icon size

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

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

    Output:

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

    Cloudflare font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

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

    Cloudflare font awesome icon Border

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

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

    Output:

    Pull Cloudflare font awesome icon To the left

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

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

    Output:

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

    Pull Cloudflare font awesome icon To the left

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

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

    Output:

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

    Animate Cloudflare font awesome icon

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

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

    Output:

    Animate Cloudflare font awesome icon with steps

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

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

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

    Output:

    Rotate Cloudflare font awesome icon

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

    Where ‘x’ represents degree of rotation.

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

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

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

    Output:

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

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

    Output:

    Cloudflare on fa-square
    Cloudflare on fa-circle
    Cloudflare on fa-ban
    Avatar

    Arunkumar Gudelli

    Liked this post? Subscribe