screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" /> </head> <body> <div class="container"> <h1>Fa Brands Fa Youtube icon | HTML CSS </h1> <p>Youtube with Button : <a href="#" class="youtube-button"><i class="fa-brands fa-youtube"></i> Watch on YouTube</a></p> <p>Default Size: <i class="fa-brands fa-youtube"></i></p> <p>Size 2xs: <i class="fa-brands fa-youtube fa-2xs"></i></p> <p>Size xs : <i class="fa-brands fa-youtube fa-xs"></i></p> <p>Size sm :<i class="fa-brands fa-youtube fa-sm"></i></p> <p>Size lg : <i class="fa-brands fa-youtube fa-lg"></i></p> <p>Size xl : <i class="fa-brands fa-youtube fa-xl"></i></p> <p>Size 2xl : <i class="fa-brands fa-youtube fa-2xl"></i></p> </div> <style> .youtube-button { display: inline-block; background-color: #FF0000; color: #fff; padding: 10px 15px; border-radius: 5px; text-decoration: none; font-size: 16px; transition: background-color 0.3s ease; } .youtube-button:hover { background-color: #FF3333; /* Set your desired background color on hover */ } .container { margin: 0 auto; width: 600px; padding: 20px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.24); } </style> </body> </html>