CSS Bookmarks

Stuff for the web – and for a Markdown to HTML plus CSS to PDF pipeline.

​#Bookmarks ​#CSS

Books

Through a series of simple, composable layouts, Every Layout will teach you how to better harness the built-in algorithms that power browsers and CSS. – Every Layout

Every Layout

Updates, by @thomasorus@merveilles.town:

But what happens when we want to style `main` at the condition that `strong` exists in the HTML? That's the purpose of `:has`, which will check for us. – New CSS that can actually be used in 2024

New CSS that can actually be used in 2024

Print:

Using print styles, I produced my book, Build a Blog Using Next.js, which was written in Markdown and transformed to HTML. I was able to reuse my website styles for the book and add print-specific styles to make it look good in PDF. Most resources I’ve found about print styles were written about a decade ago. In this post, I’ll share what I learned and what’s still relevant today. -- CSS Print Styles for PDFs and Printing, by Diana MacDonald (@didoesdigital@bne.social)

CSS Print Styles for PDFs and Printing