Font Awesome - Payment Icons


Advertisements

This chapter explains the usage of Font Awesome Payment icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below.

<html>
   <head>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">

      <style>
         i.custom {font-size: 2em; color: gray;}
      </style>
		
   </head>
	
   <body>
      <i class = "fa fa-adjust custom"></i>
   </body>
	
</html>

The following table shows the usage and the results of Font Awesome Payment icons. Replace the < body > tag of the above program with the code given in the table to get the respective outputs −

Usage Result
<i class="fa fa-cc-amex custom"></i>
<i class="fa fa-cc-diners-club custom"></i>
<i class="fa fa-cc-discover custom"></i>
<i class="fa fa-cc-jcb custom"></i>
<i class="fa fa-cc-mastercard custom"></i>
<i class="fa fa-cc-paypal custom"></i>
<i class="fa fa-cc-stripe custom"></i>
<i class="fa fa-cc-visa custom"></i>
<i class="fa fa-credit-card custom"></i>
Advertisements