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/
Connectez-vous pour ajouter un commentaire
Autres messages de ce groupe


Some weekend reading on the heels of Global Accessibility Awareness Day (GAADM), which took place yesterday. The Email Markup Con

Hey, isn't there a fairly new CSS feature that works with scroll regions? Oh yes, that's Scroll-Driven Animations. Shouldn't that mean we can trigger an animation while scrolling through the items


I know, I know: there are a ton of content management system options available, and while I've tested several, none have really been the one, y'know? Weird pricing models, difficult customization,


Okay, nobody is an exaggeration, but have you seen the stats for hwb()
? They show a steep decline, and after working a lot on color in the CSS-Tricks almanac, I’ve just been wondering