A not elegant but possible solution would be to use the same code you used, but calculate on what screen width the .holder
divs will be small enough to hide the .visible-nav
divs:
for example, if i wanted to hide them when .holder
is narrower than 400px, since .holder
is 50%:
@media only screen and (max-width:800px){
.visible-nav{
display:none;
}
}
Another way which is not pure CSS would be to use JS or jQuery to apply the conditions.