Live
Run
Copied to Clipboard
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <h1>fa fa-close</h1> <i class='fa fa-close'></i> <i class='fa fa-close' style='font-size:20px'></i> <i class='fa fa-close' style='font-size:36px;color:red'></i> <button class='custom-button'><i class='fa fa-close'></i> </button> <style> .custom-button { margin-top:10px; display:block; padding: 10px 20px; font-size: 16px; font-weight: bold; cursor: pointer; border: none; border-radius: 5px; background-color: #ad6800; color: #fff; transition: background-color 0.3s ease; } .custom-button:hover { background-color: #874d00; } </style> </body> </html>