Håkon Wium Lie

How to write a book with CSS

Could you typeset an entire book using only CSS? Discover the advanced properties for page numbers, margins, and professional print layouts.

How to write a book with CSS
#1about 3 minutes

The origins of CSS at CERN

CSS was created at CERN to separate presentation from HTML content, addressing the early web's need for basic styling like fonts and colors.

#2about 8 minutes

Evolving CSS from basic styles to advanced effects

CSS grew from simple font and color properties to include powerful features like text shadows, border radius, and declarative animations, reducing the need for JavaScript.

#3about 4 minutes

Applying CSS to book design and typography

Beyond screens, CSS has a crucial role in preserving the art of book typography, enabling the creation of printed materials directly from web technologies.

#4about 2 minutes

Mastering pagination and page layout for print

The @page rule in CSS allows for defining page size, margins, and adding dynamic page numbers to create professional book spreads.

#5about 4 minutes

Advanced figure and image placement in print

Extended float and clear properties enable precise placement of figures relative to the page, column, or spread, such as floating to the top or outside edge.

#6about 4 minutes

Deferring content and creating full-bleed spreads

Use defer properties to place elements on specific pages or columns, and combine this with negative margins to create seamless images that span across a two-page spread.

#7about 3 minutes

Refining typography and the challenge to write a book

Use the text-replace property for high-quality typography and take on the challenge of writing and formatting your own book with HTML and CSS.

#8about 12 minutes

Q&A on CSS history, design, and print standards

The discussion covers the impact of CSS on employment, convincing designers to use web standards, its relationship to LaTeX, and the future of print-specific properties.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Creating a Spotlight Text Effect with CSS and JavaScript
Every now and then it’s fun to build something small just to get a better grip on a concept, and this one’s a great example. We’ll explore how to make a simple spotlight text effect that helps you understand how to follow the cursor, use CSS variable...
Creating a Spotlight Text Effect with CSS and JavaScript
CH
Chris Heilmann
Building a "shoutout" component in plain HTML/CSS/JavaScript
Every Wednesday we meet at noon to talk about a lot of tech news, tools and resources in something we call WeAreDevelopers Live . We go live on YouTube and afterwards we cut out short videos to post on social media. What we needed was an obvious “sho...
Building a "shoutout" component in plain HTML/CSS/JavaScript
BR
Benjamin Ruschin
Creating a 3D Card Fan with CSS Transforms
So many of us developers use CSS every day, but the chances are we only use a very small portion of its features, and overlook many of its most fun ones. You only need cruise Codepen to find some mind-bendingly impressive CSS-based projects using 3D ...
Creating a 3D Card Fan with CSS Transforms

From learning to earning

Jobs that call for the skills explored in this talk.

Web Designer

Web Designer

OCLC
Leiden, Netherlands

Intermediate
CSS
JavaScript
Adobe Photoshop
Adobe Illustrator