Tailwind CSS Grid Hide Column Based On Screens Size

Dec 28, 2022
<div class="grid grid-cols-6 gap-4">  <div class="hidden md:block">    if sm hide, else show 1/6 of screen  </div>  <div class="col-span-6 sm:col-span-5">    if sm show full width 6/6, else show 5/6 of screen  </div></div>

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.