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

Symfony font awesome icon css class name is fa-symfony and CSS Content Code is \f83d.

Symfony font awesome icon is part of brands icons.

Symfony font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Symfony font awesome icon CSS class name

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

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

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

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

Output:

Symfony font awesome icon CSS Content Code

We can display Symfony font awesome icon using it’s CSS Content Code \f83d

Use the following HTML code

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

Apply CSS code

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

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

Output:

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

    Symfony font awesome icon SVG

    Use the following icon SVG to display Symfony 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="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm133.74 143.54c-11.47.41-19.4-6.45-19.77-16.87-.27-9.18 6.68-13.44 6.53-18.85-.23-6.55-10.16-6.82-12.87-6.67-39.78 1.29-48.59 57-58.89 113.85 21.43 3.15 36.65-.72 45.14-6.22 12-7.75-3.34-15.72-1.42-24.56 4-18.16 32.55-19 32 5.3-.36 17.86-25.92 41.81-77.6 35.7-10.76 59.52-18.35 115-58.2 161.72-29 34.46-58.4 39.82-71.58 40.26-24.65.85-41-12.31-41.58-29.84-.56-17 14.45-26.26 24.31-26.59 21.89-.75 30.12 25.67 14.88 34-12.09 9.71.11 12.61 2.05 12.55 10.42-.36 17.34-5.51 22.18-9 24-20 33.24-54.86 45.35-118.35 8.19-49.66 17-78 18.23-82-16.93-12.75-27.08-28.55-49.85-34.72-15.61-4.23-25.12-.63-31.81 7.83-7.92 10-5.29 23 2.37 30.7l12.63 14c15.51 17.93 24 31.87 20.8 50.62-5.06 29.93-40.72 52.9-82.88 39.94-36-11.11-42.7-36.56-38.38-50.62 7.51-24.15 42.36-11.72 34.62 13.6-2.79 8.6-4.92 8.68-6.28 13.07-4.56 14.77 41.85 28.4 51-1.39 4.47-14.52-5.3-21.71-22.25-39.85-28.47-31.75-16-65.49 2.95-79.67C204.23 140.13 251.94 197 262 205.29c37.17-109 100.53-105.46 102.43-105.53 25.16-.81 44.19 10.59 44.83 28.65.25 7.69-4.17 22.59-19.52 23.13z"/></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="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm133.74 143.54c-11.47.41-19.4-6.45-19.77-16.87-.27-9.18 6.68-13.44 6.53-18.85-.23-6.55-10.16-6.82-12.87-6.67-39.78 1.29-48.59 57-58.89 113.85 21.43 3.15 36.65-.72 45.14-6.22 12-7.75-3.34-15.72-1.42-24.56 4-18.16 32.55-19 32 5.3-.36 17.86-25.92 41.81-77.6 35.7-10.76 59.52-18.35 115-58.2 161.72-29 34.46-58.4 39.82-71.58 40.26-24.65.85-41-12.31-41.58-29.84-.56-17 14.45-26.26 24.31-26.59 21.89-.75 30.12 25.67 14.88 34-12.09 9.71.11 12.61 2.05 12.55 10.42-.36 17.34-5.51 22.18-9 24-20 33.24-54.86 45.35-118.35 8.19-49.66 17-78 18.23-82-16.93-12.75-27.08-28.55-49.85-34.72-15.61-4.23-25.12-.63-31.81 7.83-7.92 10-5.29 23 2.37 30.7l12.63 14c15.51 17.93 24 31.87 20.8 50.62-5.06 29.93-40.72 52.9-82.88 39.94-36-11.11-42.7-36.56-38.38-50.62 7.51-24.15 42.36-11.72 34.62 13.6-2.79 8.6-4.92 8.68-6.28 13.07-4.56 14.77 41.85 28.4 51-1.39 4.47-14.52-5.3-21.71-22.25-39.85-28.47-31.75-16-65.49 2.95-79.67C204.23 140.13 251.94 197 262 205.29c37.17-109 100.53-105.46 102.43-105.53 25.16-.81 44.19 10.59 44.83 28.65.25 7.69-4.17 22.59-19.52 23.13z"/></svg>
     Symfony 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 Symfony displayed using SVG

    Change Symfony font awesome icon size

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

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

    Output:

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

    Symfony font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

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

    Symfony font awesome icon Border

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

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

    Output:

    Pull Symfony font awesome icon To the left

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

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

    Output:

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

    Pull Symfony font awesome icon To the left

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

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

    Output:

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

    Animate Symfony font awesome icon

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

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

    Output:

    Animate Symfony font awesome icon with steps

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

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

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

    Output:

    Rotate Symfony font awesome icon

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

    Where ‘x’ represents degree of rotation.

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

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

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

    Output:

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

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

    Output:

    Symfony on fa-square
    Symfony on fa-circle
    Symfony on fa-ban