This chapter covers
- Using the CSS Multi-column Layout Module to create a newspaper layout
- Using the counter-style CSS at-rule to create custom list styles
- Styling images using the filter property
- Handling broken images
- Formatting captions
- Using the quotes property to add quotation marks to HTML elements
- Using media queries to change the layout based on screen size
In chapter 1, we looked at creating a single-column article, which taught us the basic principles of CSS. The design, however, was simple. Let’s revisit the concept of formatting articles but make it much more visually interesting. In this chapter, we’ll style our content to look like a page out of a newspaper, as shown in figure 4.1.
To create the content columns, we’ll use the CSS Multi-column Layout Module. Along the way, we’ll also look at how we can manage the space between the columns, how to span elements across columns, and how to control where the content breaks to a new column.