This is my div content:
<div style="display:none;" id="sidebar">
<ul class="nav navbar-inverse" style="list-style:none;">
<li><a href="#ccc">ccc</a></li>
<li><a href="#bbb">bbb</a></li>
</ul>
</div>
I hide it by default using the inline style. Now what I want is, to show this div only in mobile view.
I tried like this:
@media only screen and (max-width: 990px) {
#sidebar {
display: block;
}
}
But it is not showing the div, it's still hidden. How do I make this visible only in the mobile view?
Give me some suggestions.