Complex Content Flow Example

Using CSS Regions, a designer is able to position an image in box ‘A’ and to flow an article's content from box ‘1’ through boxes ‘2’, ‘3’ and ‘4’.

Note that the second box should have two columns, and the image is not contained in the article.

Box ‘4’ should auto-size to render the remainder of the article content that did not fit in the earlier boxes.

See the image on the right side for an visual description of this example.

Introduction

This is an example that shows hot content can be made to flow between multiple regions. The image is displayed in box 'A'. The 'article' is flowed from region '1', to region '2', to region '3', and finally to region '4'. Note how the content that is laid out in 'region 1' can be subject to a different style.

More Details

This illustrates some of the features of CSS Regions. First, the ability to associate a flow of content to a set of regions and effectively getting that content to be threaded from one region to the next.

Then, the example illustrates the concept of 'region styling', where to content that falls into a specific region is subject to additional style rule.

Finally, this initial example shows that the concept of region is orthogonal to the layout of regions. This means that regions can be created and positioned using existing CSS and HTML layout (such as multi-column, flex box or grid layout). The CSS Regions specification defines how these regions can be the recipients of a 'named flow'.

License Information:

The two pictures and this layout idea is from the CSS Regions proposal page
Copyright © 01/3/2013 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231
Status of the proposal: Editor's Draft.