Hidding elements on mobile phone and tablet in portrait position

1 reply · opened Oct 26, 2018

NNicoBootsOct 26, 2018

Hello,
In my website there are certain items (photo’s etc.) that are not suitable for display on a mobile phone (or tablet in portrait position) and I would like to hide these elements.
I have tried to add an extra class to the Responsive Design section of style.css, as shown below:

@media all and (max-width: 240px) {
	.verberg {
		Display: none;
}
}

However, when I add this class to the <div> that I want to hide, it does not work: it is still being shown. Can you help me and indicate what I should do to hide a particular <div> when the site is being displayed on a mobile phone?

SSemicolon WebSTAFFOct 27, 2018

Hello,

This functionality is already included with Bootstrap. Consider using the Bootstrap Display Classes: http://getbootstrap.com/docs/4.1/utilities/display/#hiding-elements .

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard