.image-carousel { position: absolute; color: white; background-color: rgba(128, 128, 128, 0.5); border: none; border-radius: 8px; font-size: 48px; top: 45%; right: 5px; } .image-carousel:before { content: ">"; } .image-carousel:hover { background-color: rgba(192, 192, 192, 0.5); }