« Back  |   Introduction  |   Contents  |   Next »

2. Viewport and containing boxes

The viewport

The viewport is the window or viewing area that displays web pages. When the viewport is smaller than the web page, scroll bars should be available.

The initial containing block

The initial containing block is the entire width and height of your web page - including parts of the page that are outside the viewpoint.

Containing blocks or containing boxes

A containing block is a box or block that contains other elements (descendant boxes). An element's containing block means "the containing block in which the element lives".