I'm looking to style an element inside a div with multiple classes and this element also has multiple classes:
<div class="breadcrumbsHolder dark-mode" id="breadcrumbHolderID">
<ol class="breadcrumb">
<li class="breadcrumb-item">Other</li>
<li class="breadcrumb-item active" id="activeBreadcrumb">Active</li>
</ol>
</div>
This doesn't seem to work on the "Active" text:
.breadcrumbsHolder.dark-mode {
color: orange;
}
.breadcrumbsHolder.dark-mode > .breadcrumb-item.active {
color: white;
}
Neither does this:
.breadcrumbsHolder.dark-mode {
color: orange;
}
.breadcrumbsHolder.dark-mode > #activeBreadcrumb {
color: white;
}
Nor:
.breadcrumbsHolder.dark-mode {
color: orange;
}
#breadcrumbHolderID > #activeBreadcrumb {
color: white;
}
What am I doing wrong?
One thing to note is that the .breadcrumbsHolder.dark-mode works and applies to the outer parent div