CSS Adventures
Bart Veneman
Introduction
This is an experiment to make the web like print. My only goal is to find out if I find this a pleasant way of reading. And it’s a fun experiment.
What I learned from it is that it is easier on the eyes if each section is visually separate from the others. Another thing I noticed, and I remember this from going to school, is that you have to write quite the amount of text before a page is full.
Layout
The layout for this book isn’t very complex. On small and short viewports it’s one continuous flow of content. On larger screens it behaves as separate pages of content.
Typography
At the time of writing, I have not yet thought about typography. Well, there’s one thing: it should look fairly simple and some vertical rythym would be nice.
All titles are set in Chivo . It is available in normal ultra‐bold weights. The ultra‐bold gives the cover some attitude, while the normal weight makes for some light‐weight chapter titles.
Warning: bold statement ahead. The body text is set in Georgia. Call it boring: it just works well.
Markup
One goal was to keep markup as straight forward as possible. It’s always great for accessibility to have a page that still makes sense if you strip all the CSS and JS . Like AJAX forms that fallback to actual forms, navigations that still make sense and links and buttons that have meaningful alternatives. This Progressive Enhancement is an important conrner stone that every front end developer at the very least should know about.