Carousel Arrows and Indicators

Open to all! Ask other shopowners for help.
Post Reply
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Carousel Arrows and Indicators

Post by heatherbell »

The default Bootstrap Carousel arrows and indicators are white which can cause an issue on some images.
Making changes on a new site so just posting our fix.
This adds a black 'shadow' so they show up on any image.
Add to your template/static/user.css and save:

Code: Select all

/* carousel arrows & indicators */
.carousel-control-next,
.carousel-control-prev{
filter: drop-shadow(6px 0px black);
}
.carousel-indicators{
filter: drop-shadow(0px 4px black);
}
Lots of ways the filter can be used to suit yourself:
https://www.w3schools.com/cssref/css3_pr_filter.asp

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply