How to center fontawesome icons in a div?

I centered 3 divs on the middle of the screen, each one has an icon from fontawesome, but some icons like the dice and the code are a bit offset, except for the smile. (I assume this happened because the smile is rounded just like the div, but I’m not sure) I wanted to know… Read More How to center fontawesome icons in a div?

How to use FontAwesome icon in my link element?

I’m using FontAwesome 6.4 as SVG. However, when I try to use it in my anchor tag <a> element, it is being replaced with FontAwesome’s <svg> tag. How can I use the icons in my anchor link element? I have tried the following: <p class="my-certificate"> <a href="https://www.example.com/&quot; target="_blank" class="fa-brands fa-facebook" rel="noopener"></a> </p> However, this gets… Read More How to use FontAwesome icon in my link element?

Font Awesome icons with class "fa-brands" don't work

I have imported a font awesome library in the header as <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt; and I have in the body <i class="fa-brands fa-medium"></i> which does not render (is blank). I am trying to get the icon from this library, but if I omit brands I get a different medium icon. >Solution : You are loading… Read More Font Awesome icons with class "fa-brands" don't work

Best way to change FontAwsome stars class regular to solid

I want to change the class of 5 stars of FontAwesome Icons from regular to solid according to a numeric variable levelthat changes from 0 to 5 <template> <div id="five-stars"> <font-awesome-icon icon="fa-solid fa-star" size="6x"/> <font-awesome-icon icon="fa-regular fa-star" size="6x"/> <font-awesome-icon icon="fa-regular fa-star" size="6x"/> <font-awesome-icon icon="fa-regular fa-star" size="6x"/> <font-awesome-icon icon="fa-regular fa-star" size="6x"/> </div> </template> <script> export default… Read More Best way to change FontAwsome stars class regular to solid

Change Fontawesome icon color

I am trying to create a shape like this via CSS : I currently managed to create this. i.fa { border-radius: 300px; box-shadow: 0 0 3px #888; padding: 0.7em 0.7em; background-color : #06283d } <body> <link href=”https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css&#8221; rel=”stylesheet” /> <i class=”fa fa-regular fa-spinner fa-5x”></i> </body> Is there a way to change the loading icon to… Read More Change Fontawesome icon color