Hacker News new | ask | show | jobs
by sireat 2464 days ago
I am still amazed CSS Grid named areas are not used more often.

To me the named areas are the first time that CSS layout makes sense and I first did layouts in tables in the late 90s.

1 comments

Yes! Named areas are the best! The thing I can never decide is whether to use descriptive names or stick to single letter (since single letter helps visually clarify the intended layout)
Since CSS isn't really space-sensitive, you could just pad unevenly matched names with spaces, and then layout should be reasonably clear in any standard monospaced text editor.
I don’t know why that didn’t occur to me. Thanks.