If you're defining absolute width or height for an absolute positioned element, you can use auto margin to lay out these elements.
Heyooo, I'm Stefan! I write and speak about web stuff.
New on the blog
Just cleaning up some open tabs with design inspiration resources...
Style queries for custom properties will eliminate the need for custom media queries.
VScode allows you to mark specific files and directories as readonly. This is valuable when you're autogenerating models or schemas and want to prohibit manual editing.
You simply can't do it all.
htmz is a tiny inline snippet to swap HTML via declarative HTML.
My Weekly Newsetter
Most popular in the last 30 days
- Property order is predictable in JavaScript objects since ES2015
- Web Weekly #123
- How to import JSON files in ES modules (Node.js)
- Safe/unsafe alignment in CSS flexbox
- Web Weekly #125
Hacker News Hits
- HTTP headers for the responsible developer 887 upvotes and 98 comments
- A Firefox-only minimap (2021) 699 upvotes and 113 comments
- Git commit accepts several message flags (-m) to allow multiline commits 339 upvotes and 152 comments
- How to force yourself to leave the computer using the leave command 77 upvotes and 32 comments
- Say goodbye to resource-caching across sites and domains 74 upvotes and 79 comments