xxxxxxxxxx
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="container">
<h2>Font Awesome Twitter X | CSS (fab fa-x-twitter)</h2>
<p>Twitter X with Button: <button class="twitter-button"><i class="fab fa-x-twitter"></i> Follow on
Twitter</button>
</p>
<h3>Customize Size</h3>
<p>Default Size: <i class="fab fa-x-twitter"></i></p>
<p>Size xs : <i class="fab fa-x-twitter fa-xs"></i></p>
<p>Size sm :<i class="fab fa-x-twitter fa-sm"></i></p>
<p>Size lg : <i class="fab fa-x-twitter fa-lg"></i></p>
<h3>Customize Size and Color</h3>
<p>Size xs : <i class="fab fa-x-twitter fa-xs" style="color: #FFD43B;"></i></p>
<p>Size sm :<i class="fab fa-x-twitter fa-sm" style="color: #63E6BE;"></i></p>
<p>Size lg : <i class="fab fa-x-twitter fa-lg" style="color: #B197FC;"></i></p>
</div>
<style>
.twitter-button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
text-align: center;
text-decoration: none;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #1da1f2;
/* Twitter blue color */
color: #fff;
/* White text color */
transition: background-color 0.3s ease;
/* Smooth transition for background color */
}
.twitter-button i {
margin-right: 5px;
}
.twitter-button:hover {
background-color: #0d86c9;
/* Darker blue on hover */
}
.custom-button:hover {
background-color: #006699;
/* Darker shade on hover */
}
body {
background-color: #f8f9fa;
}
.container {
margin: 20px auto;
max-width: 600px;
padding: 10px;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.24);
background-color: #fff;
border-radius: 8px;
}
</style>
</body>
</html>