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

Chromecast font awesome icon css class name is fa-chromecast and CSS Content Code is \f838.

Chromecast font awesome icon is part of brands icons.

Chromecast font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Chromecast font awesome icon CSS class name

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

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

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

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

Output:

Chromecast font awesome icon CSS Content Code

We can display Chromecast font awesome icon using it’s CSS Content Code \f838

Use the following HTML code

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

Apply CSS code

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

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

Output:

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

    Chromecast font awesome icon SVG

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

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 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="M447.8,64H64c-23.6,0-42.7,19.1-42.7,42.7v63.9H64v-63.9h383.8v298.6H298.6V448H448c23.6,0,42.7-19.1,42.7-42.7V106.7 C490.7,83.1,471.4,64,447.8,64z M21.3,383.6L21.3,383.6l0,63.9h63.9C85.2,412.2,56.6,383.6,21.3,383.6L21.3,383.6z M21.3,298.6V341 c58.9,0,106.6,48.1,106.6,107h42.7C170.7,365.6,103.7,298.7,21.3,298.6z M213.4,448h42.7c-0.5-129.5-105.3-234.3-234.8-234.6l0,42.4 C127.3,255.6,213.3,342,213.4,448z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 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="M447.8,64H64c-23.6,0-42.7,19.1-42.7,42.7v63.9H64v-63.9h383.8v298.6H298.6V448H448c23.6,0,42.7-19.1,42.7-42.7V106.7 C490.7,83.1,471.4,64,447.8,64z M21.3,383.6L21.3,383.6l0,63.9h63.9C85.2,412.2,56.6,383.6,21.3,383.6L21.3,383.6z M21.3,298.6V341 c58.9,0,106.6,48.1,106.6,107h42.7C170.7,365.6,103.7,298.7,21.3,298.6z M213.4,448h42.7c-0.5-129.5-105.3-234.3-234.8-234.6l0,42.4 C127.3,255.6,213.3,342,213.4,448z"/></svg>
     Chromecast displayed using SVG</p>
    

    Apply CSS code

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

    Output:

    This Chromecast displayed using SVG

    Change Chromecast font awesome icon size

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

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

    Output:

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

    Chromecast font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

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

    Chromecast font awesome icon Border

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

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

    Output:

    Pull Chromecast font awesome icon To the left

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

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

    Output:

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

    Pull Chromecast font awesome icon To the left

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

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

    Output:

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

    Animate Chromecast font awesome icon

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

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

    Output:

    Animate Chromecast font awesome icon with steps

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

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

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

    Output:

    Rotate Chromecast font awesome icon

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

    Where ‘x’ represents degree of rotation.

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

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

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

    Output:

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

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

    Output:

    Chromecast on fa-square
    Chromecast on fa-circle
    Chromecast on fa-ban
    Avatar

    Arunkumar Gudelli

    Liked this post? Subscribe