TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Future of Layout with CSS: Grid Layouts

2 pointsby zastrowmover 9 years ago

1 comment

exodustover 9 years ago
I avoid grids, actually hate them. But if they were part of the spec then I might take a look when the browser support ramps up.<p>The problem I have with grids is they don&#x27;t play nice with fluid resizing. I aim for liquid smooth responses from desktop down to tablet, then just one breakpoint for anything smaller than a tablet. Works for me. Any more break points is a ticket to pain.<p>What I wish was easily possible with CSS alone, is a method for specific position of an object within a list item, or properties of the list item itself <i>depending</i> on where and how many list items are currently present. That way, if we have 3 list items each containing a thumbnail, the list item could be set to 33% width. If two list items, 50% and so on. Things like a list of thumbs could remain nice and neatly aligned at any point in the responsive page resize. I&#x27;m not interested in hacking this with pre-processors, we need CSS to have these tricks up its sleeve. But instead, we get grids?
评论 #10199512 未加载