Answer the question
In order to leave comments, you need to log in
How to hide the sidebar in the mobile version by default?
I am making a portfolio website petrovich-design.ru/portfolio/. I'm using the Brushed template. On the page on the left there is a sidebar block, I want it not to be shown in the mobile and print versions of the site. It seems like responsive.css is responsible for displaying in the mobile version, i.e. I prescribe there (conditionally, p. 210) for media (min-width: 480px) the following condition - #sidebar .hide-on-mobile {display: none !important;}
And I prescribe the block
But the miracle does not happen ... what am I doing wrong ? Help me figure it out...
Answer the question
In order to leave comments, you need to log in
Do you work with pure css?
Judging by the layout, you need to hide not the sidebar, but the parent, which is "class="span3".
Pay attention to the line of code:
<div class="span3" .hide-on-mobile="" display:="" none;="">
there's clearly some kind of bug here. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question