screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'> </head> <body> <h3>Font Awesome Icons Change Color on Hover</h3> <i class="fa fa-envelope my-class"></i> <i class="fa fa-globe my-class"></i> <i class="fa fa-star my-class"></i> <i class="fa fa-heart my-class"></i> </body> <style> .my-class { font-size: 24px; color: red; } .my-class:hover { color: green; } </style> </html>