SLIDE MOVING - GREY AND ORANGE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horizontal Banner Ads</title>
<style>
.banners-container {
display: flex;
gap: 20px;
justify-content: center;
margin: 20px auto;
flex-wrap: wrap;
max-width: 1476px; /* (728*2) + 20 gap */
}
.banner {
width: 728px;
height: 90px;
position: relative;
overflow: hidden;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
cursor: pointer;
}
/* First Banner - Grey Gradient */
.banner-1 {
background: linear-gradient(135deg, #616161 0%, #9e9e9e 100%);
}
/* Second Banner - Orange Gradient */
.banner-2 {
background: linear-gradient(135deg, #ff6d00 0%, #ffab40 100%);
}
.banner-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-family: 'Arial', sans-serif;
font-weight: bold;
font-size: 22px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.cta-button {
display: inline-block;
padding: 6px 18px;
margin-top: 8px;
background: rgba(255,255,255,0.3);
border: 1px solid white;
border-radius: 20px;
font-size: 14px;
text-decoration: none;
color: white;
transition: all 0.3s ease;
}
.cta-button:hover {
background: rgba(255,255,255,0.5);
}
</style>
</head>
<body>
<div class="banners-container">
<!-- First Banner -->
<div class="banner banner-1">
<div class="banner-content">
<div>BANNER AD 1</div>
<a href="#" class="cta-button">Click Here</a>
</div>
</div>
<!-- Second Banner -->
<div class="banner banner-2">
<div class="banner-content">
<div>BANNER AD 2</div>
<a href="#" class="cta-button">Learn More</a>
</div>
</div>
</div>
</body>
</html>
No comments:
Post a Comment