DESIGNS FEATURED IN ADS
AllePopular Collections
.custom-banner {
position: relative;
width: 100%;
height: 0;
padding-bottom: 40%; /* Adjust this percentage to change aspect ratio */
overflow: hidden;
}
.custom-banner img {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: auto;
transform: translate(-50%, -50%);
}
.custom-banner .banner-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
text-align: center;
padding: 10px;
background: rgba(0, 0, 0, 0.5); /* Optional: background for better readability */
}
@media (max-width: 768px) {
.custom-banner .banner-text {
font-size: 14px; /* Adjust font size for smaller screens */
}
}