Cubes font awesome icon Usage,CSS Class Name,SVG & CSS Content Code
Cubes font awesome icon css class name is fa-cubes and CSS Content Code is \f1b3.
Cubes font awesome icon is part of solid icons.
Cubes font awesome icon usage
We can display Cubes font awesome icon using 3 different ways depending upon our requirement.
Using CSS Class Name
Using CSS Content Code
Using SVG
Cubes font awesome icon CSS class name
To display Cubes font awesome icon, add predefined class name i.e.,fa-cubes (with prefix fa-) to the i tag.
And we need to add corresponding font awesome icon style for the Cubes icon.
Cubes icon has 1 icon style i.e.,solid.
We need to append icon style class fas.
<i class='fas fa-cubes'></i>
Output:
Cubes font awesome icon CSS Content Code
We can display Cubes font awesome icon using it’s CSS Content Code \f1b3
Use the following HTML code
<li><span class='Cubes fontawesomeicon'></span>Cubes</li>
Apply CSS code
<style> 
.fontawesomeicon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
 }
.Cubes::before {
   font: var(--fa-font-solid);
    content: ' \f1b3';
 }</style>
Output:
For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/
Cubes font awesome icon SVG
Use the following icon SVG to display Cubes 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="M290.8 48.6l78.4 29.7L288 109.5 206.8 78.3l78.4-29.7c1.8-.7 3.8-.7 5.7 0zM136 92.5V204.7c-1.3 .4-2.6 .8-3.9 1.3l-96 36.4C14.4 250.6 0 271.5 0 294.7V413.9c0 22.2 13.1 42.3 33.5 51.3l96 42.2c14.4 6.3 30.7 6.3 45.1 0L288 457.5l113.5 49.9c14.4 6.3 30.7 6.3 45.1 0l96-42.2c20.3-8.9 33.5-29.1 33.5-51.3V294.7c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-1.3-.5-2.6-.9-3.9-1.3V92.5c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-12.8-4.8-26.9-4.8-39.7 0l-96 36.4C150.4 48.4 136 69.3 136 92.5zM392 210.6l-82.4 31.2V152.6L392 121v89.6zM154.8 250.9l78.4 29.7L152 311.7 70.8 280.6l78.4-29.7c1.8-.7 3.8-.7 5.7 0zm18.8 204.4V354.8L256 323.2v95.9l-82.4 36.2zM421.2 250.9c1.8-.7 3.8-.7 5.7 0l78.4 29.7L424 311.7l-81.2-31.1 78.4-29.7zM523.2 421.2l-77.6 34.1V354.8L528 323.2v90.7c0 3.2-1.9 6-4.8 7.3z"/></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="M290.8 48.6l78.4 29.7L288 109.5 206.8 78.3l78.4-29.7c1.8-.7 3.8-.7 5.7 0zM136 92.5V204.7c-1.3 .4-2.6 .8-3.9 1.3l-96 36.4C14.4 250.6 0 271.5 0 294.7V413.9c0 22.2 13.1 42.3 33.5 51.3l96 42.2c14.4 6.3 30.7 6.3 45.1 0L288 457.5l113.5 49.9c14.4 6.3 30.7 6.3 45.1 0l96-42.2c20.3-8.9 33.5-29.1 33.5-51.3V294.7c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-1.3-.5-2.6-.9-3.9-1.3V92.5c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-12.8-4.8-26.9-4.8-39.7 0l-96 36.4C150.4 48.4 136 69.3 136 92.5zM392 210.6l-82.4 31.2V152.6L392 121v89.6zM154.8 250.9l78.4 29.7L152 311.7 70.8 280.6l78.4-29.7c1.8-.7 3.8-.7 5.7 0zm18.8 204.4V354.8L256 323.2v95.9l-82.4 36.2zM421.2 250.9c1.8-.7 3.8-.7 5.7 0l78.4 29.7L424 311.7l-81.2-31.1 78.4-29.7zM523.2 421.2l-77.6 34.1V354.8L528 323.2v90.7c0 3.2-1.9 6-4.8 7.3z"/></svg>
 Cubes displayed using SVG</p>
Apply CSS code
  <style>
    .fontawesomesvg {width: 1em;
      height: 1em;
      vertical-align: -.125em;
    }
  </style>
Output:
This Cubes displayed using SVG
Change Cubes font awesome icon size
To increase Cubes font awesome icon size, use the fa-lg(33 % increase), fa-2x, fa-3x, fa-4x, or fa-5x classes along with icon class \f1b3.
Increase in icon size will be relative to their parent container.
<i class='fas fa-cubes fa-lg'>fa-lg</i><br/>
<i class='fas fa-cubes fa-2x'>fa-2x</i><br/>
<i class='fas fa-cubes fa-3x'>fa-3x</i><br/>
<i class='fas fa-cubes fa-4x'>fa-4x</i><br/>
<i class='fas fa-cubes fa-5x'>fa-5x</i><br/>
Output:
fa-lgfa-2x
fa-3x
fa-4x
fa-5x
Cubes font awesome icon with Fixed Width
All the font awesome icons does not have same width.
For example Cubes 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-cubes fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-cubes 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 WidthNormalFixed WidthNormal
Cubes font awesome icon Border
To add border to Cubes font awesome icon, use fa-border class.
<i class='fas fa-cubes fa-border fa-3x'></i>
Output:
Pull Cubes font awesome icon To the left
To pull Cubes icon to the left of the container use fa-pull-left class.
<div style='width: 200px;'>
<i class='fas fa-cubes fa-pull-left fa-3x'></i>
  ... The text after Cubes Icon will be displayed on the right side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Pull Cubes font awesome icon To the left
To pull Cubes icon to the right of the container use fa-pull-right class.
<div style='width: 200px;'>
<i class='fas fa-cubes fa-pull-right fa-3x'></i>
  ... The text after Cubes Icon will be displayed on the left side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Animate Cubes font awesome icon
To animate Cubes font awesome icon, use fa-spin class.
<i class='fas fa-cubes fa-spin fa-3x'></i>
Output:
Animate Cubes font awesome icon with steps
While animating the font awesome icon,We can rotate Cubes icon in 8 steps instead of uniform rotation.
We can use fa-pulse icon along with fa-spin class.
<i class='fas fa-cubes fa-spin fa-pulse fa-3x'></i>
Output:
Rotate Cubes font awesome icon
To rotate Cubes font awesome icon, Use fa-rotate-x class
Where ‘x’ represents degree of rotation.
<div>
<i class='fas fa-cubes fa-3x'>R</i>normal<br/><br/>
<i class='fas fa-cubes fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/> 
<i class='fas fa-cubes fa-rotate-180  fa-3x'>R</i> fa-rotate-180<br/><br/> 
<i class='fas fa-cubes fa-rotate-270 fa-3x'>R</i> fa-rotate-270<br/><br/>
</div>
Output:
R fa-rotate-90
R fa-rotate-180
R fa-rotate-270
Flip Cubes font awesome icon
To flip Cubes font awesome icon horizontally and vertically use fa-flip-horizontal and fa-flip-vertical classes.
<div>
<i class='fas fa-cubes fa-3x'>F</i> Normal <br>
<i class='fas fa-cubes fa-flip-horizontal fa-3x'>F</i> fa-flip-horizontal<br>
<i class='fas fa-cubes fa-flip-vertical fa-3x'>F</i> fa-flip-vertical<br>
</div>
Output:
F fa-flip-horizontal
F fa-flip-vertical
Combine Cubes 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 Cubes 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-cubes fa-stack-1x'></i>
    </span>
      Cubes on fa-square<br>
    <span class='fa-stack fa-lg'>
        <i class='fas fa-circle fa-stack-2x'></i>
        <i class='fas fa-cubes fa-stack-1x fa-inverse'></i>
    </span>
      Cubes on fa-circle<br>
    <span class='fa-stack fa-lg'>
        <i class='fas fa-cubes fa-stack-1x'></i>
        <i class='fas fa-ban fa-stack-2x'></i>
    </span>
      Cubes on fa-ban
</div>
Output:
Cubes on fa-circle
Cubes on fa-ban
