Stylin' with CSS: Chapter 5 - Page Layouts

Jenna Rowe | ART 354 Web Design | April 8th, 2022



Basic Layout Concepts

There are three kinds of layouts:

Oversized Elements

There are three ways to protect a site from oversized elements:

The Child-Star Selector

The Child-Star is a selector combination to set margins on all the elements in a column without using inner divs.

The Star selector means all elements. The Child selector means the child of.

There are two considerations when using the child-star selector:

  1. Using margin-top and margin-bottom when setting the vertical space between the child elements
  2. There is a potential performance hit from child-star, as the whole DOM has to be traversed to determine all potential matches