quick question
hey all,
i just have a quick question, can i do something like this:
so on mobile, i have
4
images, then i set a media query where when we are at 1440px wide, i add more 7
more images, so 11
images in total in desktop.
is this possible? add/remove html on media query condition11 Replies
thanks
what does
@media screen
mean?It means we require a screen
and how can i reverse the same?
like:
display: not_none
but obv, not_none
is not a thing, i mean its equivalentah okay, got you
this removes
display: none
on an element?I always rather have utility classes like this set the display to none than hardcoding something like block
A woops wait
I would generally advise against hiding certain content on certain devices. It goes against responsive design where the goal is to provide the same content to all users
These utility classes themselves aren't evil but you're saying you want to show more images on widescreen and hide some on mobile which I don't really agree with
ah, i see your point
yeah, that's understandable
hey @markboots., sorry for the tag but i like your answers too (from other threads i opened). do you have any opinions on this topic?
if you ever do need to remove a property set earlier, you can use
unset
, initial
, or inherit
as a value. They're all subtly different, so look them up on MDN.there is also
revert
thanks all! 🙂