December 24, 2020 03:25 pm GMT
Original Link: https://calendartricks.com/a-calendar-in-three-lines-of-css/
A Calendar in Three Lines of CSS
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
<ol>
rather than a<ul>
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.
Original Link: https://calendartricks.com/a-calendar-in-three-lines-of-css/
Share this article:
Tweet
View Full Article