/    Sign up×
Community /Pin to ProfileBookmark

Bootstrap-4 carousel is ignoring my custom css

Below are the carousel arrows which are part of a larger carousel object which I’m trying to customise through my external custom.css:

<!– Left and right controls –>
<a class=”carousel-control-prev” href=”#demo” data-slide=”prev”>
<span class=”carousel-control-prev-icon”></span>
</a>
<a class=”carousel-control-next” href=”#demo” data-slide=”next”>
<span class=”carousel-control-next-icon”></span>
</a>

I’ve, in fact, even tried overqualifying the `.carousel-control-next-icon` and `.carousel-control-prev-icon` elements in my custom.css as follows:

/* BOOTSTRAP-4 CAROUSEL ARROWS */
div#demo a.carousel-control-prev span.carousel-control-prev-icon,
div#demo a.carousel-control-next span.carousel-control-next-icon {
height: 100px;
width: 100px;
outline: black;
background-size: 100%, 100%;
border-radius: 50%;
border: 1px solid black;
background-image: none;
}

div#demo a.carousel-control-next span.carousel-control-next-icon:after
{
content: ‘>’;
font-size: 55px;
color: red;
}

div#demo a.carousel-control-prev span.carousel-control-prev-icon:after {
content: ‘<‘;
font-size: 55px;
color: red;
}

And still when I open the element in chrome inspector, the arrows are fetching the core styling from `_carousel.scss`, my custom.css attributes aren’t even shown in the debugger window.

I’ve lint checked my entire custom.css file and there’s not a single error in it, so I don’t understand where my custom carousel definition is gone. What could be going on here?

to post a comment
CSSHTML

0Be the first to comment 😎

×

Success!

Help @prahladyeri spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...