I have the following lines of code in my HTML and I'm trying to add css styling to .menustructure
and .tl-nav-holder
only if the button inside of them does NOT have the class .collapsed
.
<div class="menustructure">
<div class="tl-nav-holder">
<button class="navbar-toggle collapsed"> click </button>
</div>
</div>
I tried a few things myself based on things I've been reading on Stackoverflow but without any succes. This is my current css:
.navbar-toggle:not(.collapsed) .menustructure{
position: absolute;
width: 100% !important;
padding: 0;
height: 1000px;
}
.navbar-toggle:not(.collapsed) .tl-nav-holder{
width: 100% !important;
height: 100% !important;
}
I know there are ways to do it with Jquery but I don't want to be dependend on that. Does anyone know what I'm doing wrong?