Using display:none

User 2903050 Photo


Registered User
260 posts

Hi, I am to hide content from the the lowest screen size (mobile) using a foundation framework but not having any success.
I am using the display: none in the position menu which incidentally works fine if I want to hide content for the bigger breakpoints but not for under the lowest breakpoint. What am I doing wrong? Having searched online too, is using position, display:none the best practice for hiding elements for different screen sizes.
Much appreciated.
Regards Phil
User 122279 Photo


Senior Advisor
14,648 posts
Online Now

You have to set it to display: none for small screens, and then, at whichever breakpoint you want it to become visible, change it to display: block, inline, flex... anything but none.

Looks like you have done the exact opposite.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2903050 Photo


Registered User
260 posts

Thank you once again. I was hiding the content in the lower screen but forgetting to make it visible in the larger breakpoints. Cheers

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.