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.

CSS Grid Generator

240 pointsby rajualmost 6 years ago

16 comments

crispyambulancealmost 6 years ago
CSS grid, where were you 15+ years ago?<p>CSS was such a mess for so long because of the complete lack of a consistent easy-to-understand layout mechanism. This has spawned the creation of countless workarounds and javascript gizmos, JUST SO you could stick something on a webpage where you want to go and have it behave in a sane way under resize and different browsers.<p>I welcome CSS grid, it reminds me of the sane layout managers we&#x27;re used to from writing desktop applications. It makes me wonder why we had to wait so long for this functionality to be part of the CSS standard.<p>As for the generator, I think it&#x27;s nice. Most folks will get the hang of banging out arbitrary css grid layouts very quickly. This tool will accelerate that for many.
评论 #20031449 未加载
评论 #20031746 未加载
评论 #20034867 未加载
评论 #20032960 未加载
Someone1234almost 6 years ago
Nice. There are a few bugs:<p>- Clicking multiple times in a box causes an unreadable mess<p>- If the code gets too long the &quot;Please may I have some code&quot; model disappears off the page, including the only way to close it (&quot;Done&quot; button). Clicking outside the model doesn&#x27;t close it nor does the escape key.<p>- If you set rows or columns to -1 it generates a display artifact which remains indefinitely.<p>- &quot;What does this project do?&quot; model cannot be closed or read fully (outside page limits).<p>I&#x27;m on Chrome retail latest (74.0.3729.169) with 125% Windows DPI.
评论 #20030682 未加载
评论 #20030990 未加载
radoalmost 6 years ago
All I needed for my grids was display: table with row wrapping. I got magazine layouts instead with worse vertical alignment of cell content. CSS Grid is cool and does previously impossible things, but I wish the industry fixed old techniques (where is &#x27;gap&#x27; in flexbox?), instead of jumping on the next big thing.
评论 #20032962 未加载
purerandomnessalmost 6 years ago
Absolutely love Sarah Drasner&#x27;s projects! Attention to detail and great sense of humour, thank you!
Sohcahtoa82almost 6 years ago
Is there a reason to use a CSS grid and not a &lt;table&gt;? Seems like web devs have been crying about a missing feature for a long time when it&#x27;s already existed. But I only know the basics of web development and don&#x27;t know best practices, so I don&#x27;t know why devs would be insisting on using CSS to create a grid when an HTML table works just fine.
评论 #20035495 未加载
评论 #20036636 未加载
warpechalmost 6 years ago
Neat!<p>One comment though: The generated code contains nested selectors, which are not valid CSS.
poisonborzalmost 6 years ago
It sadly doesn&#x27;t solve the problem with literally all and every grid generator out there - no proper support for spans and areas. The biggest power of grid is the free-form layouting it provides - it just gets lost in these simplistic editors.
评论 #20031773 未加载
评论 #20036245 未加载
kaycebasquesalmost 6 years ago
What do you all think of this in contrast to Firefox&#x27;s Grid Inspector? More useful? Less useful? Serving different purposes?<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Page_Inspector&#x2F;How_to&#x2F;Examine_grid_layouts" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Page_Inspecto...</a><p>To put my question another way, I&#x27;m trying to figure out where people really need help while creating Grid layouts. Whether we need tools to deeply inspect existing layouts, or whether we just need tools to quickly generate layouts (like Sarah&#x27;s tool).<p>Disclosure: I work on Chrome DevTools.
评论 #20032089 未加载
jhprattalmost 6 years ago
I&#x27;m surprised to see this big of a reaction. I created something with nearly identical features (only missing the ability to specify gaps) right when grid was released. There was some interest, but not a ton.
SamWhitedalmost 6 years ago
As usual with these tools, they&#x27;re very useful (probably) but almost unusable by anyone with bad contrast vision. Please up the contrast on all the various borders and controls like the arrows on the various number selectors. I can barely use them and I don&#x27;t think my contrast perception is actually all that bad, this must just be a big black square to someone with properly bad contrast perception.
sireatalmost 6 years ago
CSS Grid and its named areas are fantastic!<p>In my experience teaching web dev to complete beginners, everyone has been able to create reasonable layouts with CSS Grid.<p>That&#x27;s an improvement over flexbox which shines and is meant for 1D layouts but requires heavy pushing and shoving for more difficult 2D layouts.
mchudginsalmost 6 years ago
The linked github repo (<a href="https:&#x2F;&#x2F;github.com&#x2F;sdras&#x2F;cssgridgenerator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sdras&#x2F;cssgridgenerator</a>) isn&#x27;t (publicly) available yet?
评论 #20030983 未加载
temp99990almost 6 years ago
I’ve had a lot of success using flexbox personally, and at least on my own projects I develop features on a page in 1D vs 2D...
wolfspideralmost 6 years ago
I was working on something using CSS grids and this has given me so many new ideas- this is great!
keithnzalmost 6 years ago
this tool feels very clunky and non obvious, can&#x27;t imagine using it for anything useful
tide_adalmost 6 years ago
what the heck are these grid tags in the generated code?<p>I was thinking I was about to applaud a flex-box wizard that masterfully did ordering and more, but instead I see tags that I&#x27;m seriously not sure about. Are they compatible with the rest of my flex-box related site with Bootstrap all over the place? Are they compatible with my child elements and positioning?<p>Too many questions for this day and age. I don&#x27;t think enough people are familiar with those particular tags that get generated, but if thats the &quot;new way&quot; lets revisit this in 2021
评论 #20033083 未加载