Question · HTML and CSS course · Module 5: Responsiveness
Hiding an element on mobile
How do you hide an element on small screens in CSS?
Answer options
- @media (max-width: 768px) { .element { display: none; } }
- .element { mobile-hide: true; }
- @hide-on-mobile .element;
- .element { responsive: hidden; }
You can check the correct answer by solving this task in the CodeWorlds game.