TGViewer
Coding Community Coding Community @coding_communityofficial · 7.29K subscribers
Post #457 3.81K
Assume you have a 5x5 grid in CSS. There are items spanning different sizes, but no fixed to any specific position.

🤩 For such cases, using a "dense" mode for grid-auto-flow property allows you to "fill in the gaps" created by previous elements, by pushing latter elements that fit into the gap

🖼 This could be helpful for things like an image gallery, where you have random sizes of elements

📁 Sample code snippet:
.grid {
grid-template-rows: repeat(5, 10rem);
grid-template-columns: repeat(5, 10rem);
}

.item-2 {
grid-row-end: span 2;
grid-column-end: span 2;
}
More from @coding_communityofficial
  1. Oct 9, 2026🚨 Earn Passive Money Easily 🚨 Since your device is already connected to the internet, yo…
  2. Oct 8, 2026INDIA'S BIGGEST SHOPPING SALE IS LIVE TOMORROW IS IT REALLY A DEAL🤡? THIS APP BUYHATKE TE…
  3. Oct 3, 2026𝗧𝗵𝗼𝘀𝗲 𝘄𝗵𝗼 𝘄𝗮𝗻𝘁 𝗿𝗲𝗳𝗲𝗿𝗿𝗮𝗹𝘀 𝗮𝗻𝗱 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽�…
  4. Sep 30, 2026🚀 Understand Any Tech System with One Prompt as a programmer (Note: System understanding,…
  5. Sep 30, 2026❤️ Here is the list of highly recommended Telegram channels for your free learning ❤️ Get…
  6. Sep 27, 2026🚨 Earn Passive Money Easily 🚨 Since your device is already connected to the internet, yo…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →