Skip to content

How do I hide an element below 640px and show it on wider screens? #2079

Answered by gsimone
mosemet asked this question in Help
Discussion options

You must be logged in to vote

<div class="hidden sm:block" /> will make the element visible up to the sm breakpoint. Tailwind is mobile-first

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mosemet
Comment options

Answer selected by mosemet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants