This article has no byline and is on a website that is even more weirdly specific than this one is, but I appreciate the trick here. A seven-column grid makes for a calendar layout pretty quick. You can let the days (grid items) fall onto it naturally, except kick the first day over to the correct first column with grid-column-start. Thoughts:
I’d go with an rather than a just because it seems like days are definitely ordered.
… Read article “A Calendar in Three Lines of CSS”
The post A Calendar in Three Lines of CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://calendartricks.com/a-calendar-in-three-lines-of-css/
Войдите, чтобы добавить комментарий
Другие сообщения в этой группе


Let’s run through a quick refresher. Image maps date all the way back to HTML 3.2, where, first, server-side maps and then client-side maps defined clickable regions over an image using map and are

Brad Frost is running this new little podcast called Open Up. Folks write in with questions about the “other” side


In this post, Blackle Mori shows you a few of the hacks found while trying to push the limits of Cohost’s HTML support. Use these if you dare, lest you too get labelled a CSS criminal.
<

