I was wondering, what is the correct syntax to do this:
@media only screen and (max-width: 780px){
.header-toolbar-contact:nth-child(1){
display: none !important;
}
.header-toolbar-contact:nth-child(2){
display: none !important;
}
}
I tried this:
@media only screen and (max-width: 780px){
.header-toolbar-contact:not(.header-toolbar-contact:nth-child(3)){
display: none !important;
}
}
But doesn't seems to work. My question is: how to use multiple pseudo-classes in one declaration. As if it was "nested".
Comma separate the classnames:
Css allows multiple selectors to use the same rules with comma separated selectors. You can use as many as you wish.