Anyone know of a way to target a div that will hide/show content based on the size of the div similar to the way media tags work.
Example
<div class="wrapper">
<div class="holder">
<div class="nav visible-nav"></div>
<div class="content"></div>
</div>
<div class="holder">
<div class="nav visible-nav"></div>
<div class="content"></div>
</div>
</div>
.wrapper{width:100%;}
.holder{width:50%;float:left;}
.holder{width:50%;float:right;}
Using a media tag i can target it like so:
@media only screen and (max-width:1200px){
.visible-nav{
display:none;
}
}
Any way I can target the div instead of the entire screen??