Can someone tell me if there is a spicificity among CSS properies?
I am testing flexbox and I tried this scenario:
The second selector .flex-basis-5
is applied via JS on some kind of condition.
I was expecting the value of flex-basis to be overwritten by new selector, but it's only applied if I add !important
to it.
.flex-container {
display: flex;
flex-flow: row wrap;
}
.flex-item-7 {
flex: 0 0 58.33%
}
.flex-basis-5 {
flex-basis: 41.66%;
}
<div class="flex-container">
<div class="flex-item-7 flex-basis-5">Some content</div>
</div>
Thanks!