Adding FontAwsome icon via CSS pseudo vs fa class
How do I make an adding fontawsome icon via css pseudo vs fa class?
What is a adding fontawsome icon via css pseudo vs fa class? How do you make a adding fontawsome icon via css pseudo vs fa class? This script and codes were developed by Tommy on 30 December 2022, Friday.
Adding FontAwsome icon via CSS pseudo vs fa class - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Adding FontAwsome icon via CSS pseudo vs fa class</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://www.google.com/fonts#QuickUsePlace:quickUse/Family:Roboto);
html, body { font-family: 'Roboto', sans-serif;
}
h3 { color: #555;
}
a { text-decoration: none;
}
.content { text-align: center;
}
/************* with css pseudo elements ******************/
.search { background-color: #1abc9c; color: #fff; padding: 5px;
}
.search:before { font-family: FontAwesome; content: "\f00e"; color: #fff; margin-right: 5px;
}
/************* with fontawesome class ******************/
.search-wrap { background-color: #1abc9c; color: #fff; padding: 5px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="content"> <h3>add with CSS pseudo elements</h3> <a href="#" class="search">Search</a> <h3>add with fa class</h3> <a href="#" class="search-wrap"> <i class="fa fa-search-plus"></i> <span>Search</span> </a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Adding FontAwsome icon via CSS pseudo vs fa class - Script Codes CSS Codes
@import url(https://www.google.com/fonts#QuickUsePlace:quickUse/Family:Roboto);
html, body { font-family: 'Roboto', sans-serif;
}
h3 { color: #555;
}
a { text-decoration: none;
}
.content { text-align: center;
}
/************* with css pseudo elements ******************/
.search { background-color: #1abc9c; color: #fff; padding: 5px;
}
.search:before { font-family: FontAwesome; content: "\f00e"; color: #fff; margin-right: 5px;
}
/************* with fontawesome class ******************/
.search-wrap { background-color: #1abc9c; color: #fff; padding: 5px;
}
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,614 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Sub-orderd list | 1,965 Kb |
Custom checbox with css | 2,825 Kb |
Flex box | 2,171 Kb |
Materialize css | 3,074 Kb |
Customise Scroll Bar with css | 2,853 Kb |
Timeline with CSS | 2,552 Kb |
Timeline sample | 2,263 Kb |
Web SQL | 1,983 Kb |
Parallax with only css | 3,096 Kb |
AngularJS | 2,264 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Learning canvas drawing | Aurer | 2,204 Kb |
Modular Flip Card | Bbodine1 | 4,009 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Easing | GreenSock | 2,043 Kb |
Bubble animation | Ftabor | 6,565 Kb |
Velocity.js custom stagger | Tommiehansen | 4,805 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!