For Bootstrap 4.0 (in alpha as of the moment of typing) you should specify the .active
class on the a
element.
For me only the following worked:
.nav-pills > li > a.active {
background-color: #ff0000!important;
}
The !important
was also necessary.