Each part of the page is on one grid

Each part of the page is on one grid

This page uses one grid for all of its parts. The unit of the grid is the size of the text. A column is three units wide, and a gutter, the distance between two columns, is two units wide. The baseline is the bottom of letters such as H and x. A line is the distance from one baseline to the next, one and a half units. The baselines of the text are on the grid lines, which are one line apart. The text width, the width of the paragraphs, is seven columns, and the five columns on the right hold pictures and notes. When the size of the text or the line height changes, all distances on the page change with it. No distance on the page comes from the eye.

This picture is three columns wide.
This picture is two columns wide.

Contents

  1. The headings and the text
  2. The pictures inside a paragraph
  3. The rules
  4. The colour areas
  5. The boxes
  6. A box directly after a heading
  7. The margin notes
  8. The pull quotes
  9. The lists
  10. The tables
  11. The links
  12. The code
  13. The icons
  14. The drop caps
  15. The badges
  16. The form elements
  17. The effects
  18. A full-width example
  19. The narrow screens

An example page uses this grid for an article about Swiss typography: Swiss typography.

This picture is seven columns wide. Its height is the height of a capital letter plus whole lines, as near to three by two as possible.

A picture is on the same grid. The cap line is the top of the capital letters. The width of a picture is a number of columns. Its top edge is at the cap line of the text beside it, and its bottom edge is on a grid line. Its height is the height of a capital letter plus whole lines, as near to its ratio as possible. The image is cut to that height, so it does not stretch. Thus the text after a picture starts on a grid line again.

This picture is square.
This picture is three by four.

Each part of the page is on one grid:
the headings and the text

A heading is larger than the text, and its line height is a number of half baselines. Thus each line of a heading is a whole number of half baselines below the line before it. The margin above a heading is larger than the margin below it, so the heading belongs to the text after it. The two margins are near three and five half baselines, two numbers of the Fibonacci series. The first baseline of the text after a heading is always on a grid line.

This picture is five columns wide. Its top edge is at the cap line of the paragraph beside it.

Each part of the page is on one grid:
the smallest heading and the paragraph below it

The smallest heading has the size of the text and a bold weight. Its line height is one line, so each of its lines is on a grid line. Its margins above and below have the same ratio as for the larger headings. The first baseline of the paragraph after it is two lines below its last baseline. Thus the smallest heading uses the grid of the text with no change.

This picture is four columns wide and three by two.
This picture is three columns wide and has the same height.

Pictures on the left, text on the right

Here the text is in the columns on the right. The pictures are in the text width, the seven columns on the left. The pictures and the heading start at the same cap line.

Each part of the page is on one grid:
the pictures inside a paragraph

A picture can also be inside a paragraph, with the text around it. Its width is a number of columns plus one unit of the gutter. Thus a margin of one unit is between the picture and the text, and the text beside it starts at a column edge. The top edge of the picture is at the cap line of the first line of text, and its bottom edge is on a baseline. The text beside the picture is narrower, and the text below the picture has its full width again. Here the picture is square and two columns wide.

A small picture follows the same rules as a large picture. This picture is one column wide, plus one unit of the gutter. The column sets its width, and the lines set its height, so no part of its size comes from the eye. Its top edge is at the cap line of the first line, and its bottom edge is on a baseline. A picture of this size is near the size of a letter, for example an initial at the start of a paragraph. After the picture, the text continues with its full width.

A portrait picture is taller than it is wide. At three by four on two columns, it is taller than the square above it, so more lines of text are narrow. The height of the picture is a whole number of lines, so the picture does not stretch and the text does not stop for it. Where the picture ends, the next line of text has its full width again. The eye then finds the left edge of the column at the same position as before. A tall picture needs a long paragraph, because with a short paragraph the picture extends below the end of the text.

A landscape picture on three columns leaves four columns for the text beside it. Four columns hold only a few words in each line, so this width is good for a few lines only. At thirteen by eight the picture is low, and the text soon has its full width again. Thirteen to eight is near the golden section, a ratio that the page also uses for the sizes of its headings. The width of the picture is three columns plus one unit of the gutter. The picture and the text use the same edges.

This picture is square.
This picture is square.
This picture is thirteen by eight.

Each part of the page is on one grid:
the rules

A rule divides the text and adds no picture. It belongs to the text before it, as a heading belongs to the text after it. Thus the ratio of the margins is the other way round: two half baselines above the rule, and near three below it. The rule is centred on a grid line, and the margin below it is never smaller than the margin above it. The length of the rule is a number of columns, and here it is the text width.


Below the rule, the text continues on the grid. The rule is an eighth of a unit thick and has the colour of the text. Thus it shows a pause between two thoughts, not the start of a new section.

Each part of the page is on one grid:
the colour areas

A colour area is a picture with no content. Its width is a number of columns, and its top edge is at the cap line of the text beside it. Its bottom edge is on a grid line, as near to its ratio as possible. A colour area gives weight to a part of the page, shows where a section starts, or holds a row together. It uses the two colours of the page: the red of the rule below the title, and the black of the text.

Each part of the page is on one grid:
the boxes

A box separates a piece of text from the paragraphs around it, for example a note, a definition or an example. A box does not have its own grid. Its background is a number of columns wide, as a picture is. The text in the box has the same size and line height as each other paragraph.

A box with its own heading

The background of the box goes from one column edge to another. The padding at the sides of the box is one column on the right and one unit less on the left, so the text does not touch the edge. The background starts two lines above the baseline of the heading and stops one line below the last baseline. A box with no heading has two lines above its text. Below its text, it has at least one and a half lines, up to the next grid line.

The margin around each box is the same. The background starts one line below the last baseline of the text above it. The next baseline after the box is two lines below the background. In the box, the text can stop between two grid lines. Then the background adds half a baseline at its bottom, and the text after the box is on the grid lines again.

Between two boxes, the text continues as usual. Each box has its own margin above and below it, so two boxes do not touch. The paragraphs between the boxes are part of the body text.

This box is red and has no heading. Its text has the colour of the page. The line below a link in this box, for example to the links, also has the colour of the page. The background starts two lines above the first baseline and stops two lines below the last baseline. Thus the text stays on the grid lines, and the margin around the box is the same as around each other box.

After the red box, the page continues with plain text. Its first baseline is on a grid line, as after each other part of the page.

A box in black

This box starts with a smaller heading, and its text is near the heading. The first baseline of the text is one and a half lines below the heading, so the text is between two grid lines. The background then adds half a baseline at its bottom. Thus the margin around the box is the same as around each other box.

After the black box, the text continues, and its first baseline is on a grid line again. The parts around the box need no information about the box. The margin above the box comes from the paragraph above it, and the box keeps its own padding inside. Below the box, the next paragraph gets the same margin as after each other box. For the reader, the box is a pause, not a break, and the columns and the lines continue after it.

Each part of the page is on one grid:
a box directly after a heading

This box comes directly after a heading, with no paragraph between them. The background starts where the text after the heading would start. The text in the box keeps its own padding. After the box, the page is on its grid lines again.

Directly after a heading, the background starts near the cap line that a paragraph would have there. Its position moves in steps of half a baseline. Thus the margin between the heading and the background is the margin below the heading. The background can then start between two grid lines. Then it adds half a baseline at its bottom, so that it stops on a grid line.

A box inside a text block

Here the box is not a cell of the page grid. It is part of a text block: a heading and its text in one cell of the grid.

This box is inside the text block, between two of its paragraphs. Around the background, the box has padding, not a margin. Thus the padding adds to the margin below the paragraph above it, and the two do not merge. The box has the same margin and padding here as in the page grid.

This paragraph comes after the box and is also inside the text block.

Each part of the page is on one grid:
the margin notes

A margin note is in the columns beside the text, where a picture can also be. It has the size and the line height of the text. Thus each of its lines is on a baseline of the paragraph beside it. Only its italic style and its light weight make it different, as for a caption. Its first line is on the first line of the paragraph, as a picture beside a paragraph starts at its cap line.

Below the note is the same margin as below a paragraph. When the note is longer than its paragraph, the next paragraph starts one empty line below the note. Thus the page stays on its grid lines.

A note can also refer to one word lower in a paragraph. The note is then in the HTML of the paragraph, directly after that word11 This note refers to the word with the number 1. It starts on the line of that word., and the browser moves it into the columns beside the text. There it starts on the line of that word. When the line breaks of the text change, the word goes to another line, and the note goes with it. A note of this type is not part of the rows of the grid. When it is longer than its paragraph, the text below does not move down for it.

Each part of the page is on one grid:
the pull quotes

A pull quote shows a few words from the text again, in a larger size. It is between two paragraphs, for a reader who only looks quickly through the page. Its size and line height follow the rules of a heading, so its line height is a number of half baselines. It has the text width.

A pull quote shows a few words from the text again, in a larger size.

A heading belongs to the text after it, but a pull quote belongs to neither paragraph. Thus the margin above it and the margin below it are the same: one empty line, as between two paragraphs. The margin above is a little larger, so that the paragraph after the quote is on a grid line again. The quote is italic and has the light weight of the text, so it shows as a quote and not as a heading. Its opening quotation mark is in the page margin, to the left of the edge of the text. A class can make its first letter bold, as in the second quote below.

A pull quote can also move out of the columns of the text, by whole columns to the left or to the right. It keeps its width and the steps of the column grid. But its edges are not in line with the paragraphs around it, so the reader sees it as separate from them.

The quote moves past the edge of the type area into the page margin.

The type area is the area of the twelve columns. Here the text starts in the first column of the type area. The quote moves past the edge of the type area into the page margin. It moves by one column and one gutter, as if the grid continued past its edge. A quote that moves to the right goes into the columns beside the text. In both cases, the margin above and below the quote is the same as for a quote in the columns of the text.

Each part of the page is on one grid:
the lists

A list is a set of items, for example parts or steps. Each item starts on a new line, with a mark in front of it. The lines of a list are one line apart, as the lines of a paragraph are. Thus each baseline of a list is on a grid line. Above and below a list is one empty line, as between two paragraphs.

The marks are to the left of the edge of the text, in an area as wide as a gutter. Thus the words of the items are in line with the words of the paragraphs. Between a mark and the first word is a distance of half a unit. When an item has more than one line, its next line starts at the edge of the text, below the first word of the item.

  1. Set the size of the text.
  2. Set the line height.
  3. Divide the type area into twelve columns and eleven gutters.
  4. Put each part of the page on the grid lines.

A numbered list shows steps in a sequence. The numbers are aligned on the right, so their full stops are in a vertical line. The numbers are bold, so each step is easy to find.

Lists in a box

  1. Put the heading at the top of the box.
  2. Put the lists below the heading, with one empty line between them.
  3. Stop the background one line below the last baseline, or one and a half lines if the last baseline is between two grid lines.

Each part of the page is on one grid:
the tables

A table shows values in rows and columns. Each row of a table is a line of text, so its baselines are on the grid lines. The columns of the table are on the columns of the page. Thus each column of the table starts at a column edge, and a gutter is between two columns of the table.

PartSizeUnitsPixels
UnitThe size of the text116
GutterThe distance between two columns232
ColumnThree units348
Text widthSeven columns and six gutters33528
Type areaTwelve columns and eleven gutters58928

The first row has the names of the columns, in bold. Below it is a thin rule. The distance from the rule to the baseline above it is the same as the distance to the cap line below it. Thus the next row is two lines below the first row. Numbers are aligned on the right, and all digits have the same width. Thus the last digits of all numbers are in a vertical line. When a cell has more than one line of text, the next row starts one line below its last baseline. The values in pixels are for a text size of 16 pixels.

When the cells have long text, more padding above each row makes a table easier to read. A class adds one or two empty lines between two rows. The padding is whole lines, so the rows stay on the grid lines. In the table below, each row starts two lines below the last baseline of the row above it.

PartWidthHeight
PictureA number of columnsThe height of a capital letter plus whole lines
Pull quoteThe text widthLines of a number of half baselines each
Text fieldThe text widthTwo and a half lines
ButtonTwo columns, or the number of columns in its classTwo and a half lines

The padding below the first row does not change. The next row is two lines below the first row, as in the compact table, and the rule is halfway between them.

A table in a box

DistanceHalf baselines
Margin above the box, from the last baseline above it to its top edge2
Padding at the top, from the top edge to the baseline of the heading4
Padding at the bottom, from the last baseline to the bottom edge2
Margin below the box, from its bottom edge to the first baseline of a paragraph after it4

A link takes the reader to another part of the page or to another page. A link has the size, the weight and the line height of the text, so it does not move a baseline. A red line below the words shows the link, for example to the boxes or to the tables above. The line is as thick as a thin rule, and its distance below the baseline is the same as its thickness. Where a letter goes below the baseline, the line has a gap.

When the pointer is on a link, the words of the link are red. When the link has the focus, a red outline is around it. In a red box or a black box, the line below a link has the colour of the text of the box. A link that the reader used before looks the same as the other links.

Each part of the page is on one grid:
the code

Code is text for a computer, for example the name of a property such as text-box or of a class such as .paragraph. In a paragraph, code has a monospace font, in which each letter has the same width. The capital letters of this font have the same height as the capital letters of the text. Thus the code stays on the baseline, and the line height does not change.

.paragraph {
  text-box: trim-both cap alphabetic;
  margin: 0 0 var(--paragraph-margin);
}

A block of code has one line of code on each grid line. Its lines are one line apart, as the lines of a paragraph are, and above and below the block is one empty line. The block keeps the spaces at the start of each line, so the structure of the code stays clear. A line of code that is longer than the text width continues on the next line.

Each part of the page is on one grid:
the icons

An icon is a small picture with the meaning of a word, for example an arrow. An icon is one unit wide and one unit high, as large as the text. Its middle is at the middle of the capital letters, as for a checkbox, so an icon in a line does not change the line height. The lines of an icon are an eighth of a unit thick, as a thin rule is. Between an icon and the word after it is a distance of half a unit.

An arrow in front of a link shows where the link goes. For example, the form elements are below this section. The icon has the colour of the text, so it becomes red with the words of the link when the pointer is on it.

In a button, the icon is in front of the word, at the same distance. The icon and the word together are in the middle of the button.

Each part of the page is on one grid:
the drop caps

A drop cap is a large first letter at the start of a paragraph. A drop cap is three lines deep. Its top is at the cap line of the first line, and its baseline is on the baseline of the third line. Thus the height of its capital letter is two lines plus the height of a capital letter of the text. The font size of the drop cap comes from this height. The text beside the drop cap starts a whole number of half units from the left edge of the text, and at least half a unit to the right of the letter. Below the drop cap, the text has its full width again.

Each part of the page is on one grid:
the badges

A badge is a short word or a number on a small grey area in a line of text, for example New. The area goes from a quarter of a unit above the cap line to a quarter of a unit below the baseline. Thus a badge is smaller than a line, and it does not change the line height. The text of the badge is bold and stays on the baseline of the line. At its sides, the area has a padding of half a unit.

A badge can also be red, with text in the colour of the page, for example for a number of new messages: 12. All digits have the same width, so a badge keeps its width when a digit changes. In a box, a grey badge has the colour of the page, as a text field has.

Each part of the page is on one grid:
the form elements

A field is an area where the reader enters or selects a value. A text field is a grey field for one line of text. Its label is above the field. The text in the field is on a grid line, two lines below the baseline of the label. Thus a form keeps the grid lines of the page and of each column beside it.

We fill in this number for you.

We use it only to reply to you.

Enter an email address, such as name@example.com.

A paragraph between two fields is a normal paragraph. Its first baseline is two lines below the bottom edge of the field above it. The next label is two lines below the last baseline of the paragraph, as between two paragraphs.

Write the street and the house number. Add a floor or a company after a comma.

It has four digits.

Date of birth

Contact me by

Newsletter

Select how often we send it.

Interests

Select all that apply.

Write anything else that we must know.

A text field is two and a half lines deep, and the baseline of its text is on a grid line. The label is half a baseline above the field, and a description or an error message can be between them. Fields can be side by side, with their labels on one baseline and the same edges. A select and a text area use the same rules as a text field.

Checkboxes and radio buttons are lines of text, one line apart, with a square or a circle in front of each line. Many choices can be in columns of two or more grid columns, row by row, and the choices of one row start on the same baseline. A checked choice is red, as a field in focus is. From label to label, a group of choices has the same lines as a text field.

The submit button is red and as deep as a text field, and a second button can be beside it in grey. A field with an error has a red message above it and a red rule to its left. A disabled field, choice or button has no fill, a thin grey outline and grey text. An optional field has the word optional after its label, in the style of a description.

Your address

Enter the four digits of your postcode.

Contact me by

Choose at least one way to contact you.

Newsletter

In a box, the fields, the squares and circles of the choices, and the second button have the colour of the page. Thus they show as openings in the grey. The padding at the sides is the same as in each other box: one column on the right and one unit less on the left. A field has a hard edge, and a narrower band of grey beside it looks like a thin frame.

Below its last text field or button, the box adds two lines of grey. Below its last choice, it adds one and a half lines. Thus the padding below is never less than the padding above the first line of the box. The bottom edge of the box stays on a grid line.

Each part of the page is on one grid:
the effects

Each part of the page is on one grid

An effect is an ornament on the grid. The effects are in a separate style sheet, and each effect keeps the lines and the columns of the grid. Text can run up, at a right angle to the lines, as on Swiss posters. Its baseline is on the right edge of a column, and its end is at the cap line of the paragraph beside it, as the top edge of a picture. The title of the page runs up in the page margin, beside this paragraph, in grey and in a heavier weight than a heading. Its baseline is one gutter to the left of the type area, as if the grid continued into the page margin. A different class turns the text the other way, so that it runs down. When the page margin is too narrow, a class hides the text.

A colour area can also have a hatch: thin lines at 45 degrees, in black, red or grey. Along a baseline, the distance between two lines is one unit. The hatch starts at the top-left corner of the type area, not at the corner of the colour area. Thus each line goes through the edge of each column on every second baseline, and the hatches of two colour areas continue each other. A class turns the lines the other way, from the top left to the bottom right, as in the red hatch.

A colour area can also hold a grid that is turned, as on a concert poster by Josef Müller-Brockmann from 1955. The turned grid is the grid of the page: columns of three units, gutters of two units, and a line between two grid lines. It turns around the first grid line at the left edge of the area, so that it goes one line down for each three units to the right. Each word, bar and rule starts at a crossing of the turned grid, a number of units along it and a number of grid lines across it. The words stand on its grid lines, and the bars fill its columns or go along its lines. Thus each part is on the turned columns.

column unit line

unit 16 pixels
column 48 pixels
gutter 32 pixels
line 24 pixels

Two colours can overprint, as two inks on a printed poster. Where a red part is on black, the black shows through. Where it is on the grey, it stays red. In the area below, the red bar goes across the black word, and the word stays easy to read on it. The red word goes across a grey bar, and its letters are dark red there: the two colours together.

overprint ink

A colour area can also hold words at a very large size, as on the poster “der Film” by Josef Müller-Brockmann from 1960. There the grid is not turned. The first word is grey. It ends on the right edge of the seventh column, and the left edge of the area cuts its first letter. The second word has the colour of the page. The second word is partly clear, so where the two words cross, the first word shows through. The small red text starts at the same column edge as the second word, and each of its baselines is on a grid line.

Typographic
Grid Effects

the Grid

Unit 16, baseline grid 24 pixels

Column 48, gutter 32 pixels
Twelve columns, 928 pixels

A colour area can also hold a polar grid, as on a concert poster for Beethoven by Josef Müller-Brockmann from 1955. Its rings are around one point, one line apart, and its rays divide the circle into 48 steps of 7.5 degrees. The point is on a crossing of the grid. The arcs are parts of rings, a hairline apart and each in one colour.

From the inside out, the arcs are ½, 1, 2, 4, 4 and 8 lines thick, and they end in steps. The edges of the area cut the circle. The text is inside the innermost ring and stands straight on the grid and the columns of the area, from the sixth column. When the grid shows, both grids show.

polar

rings one line apart
around one point
rays 7.5 degrees apart
each ring ends on its own ray

Each part of the page is on one grid:
a full-width example

The grid of the page can also hold a layout as on a poster, over the full width of the twelve columns. The example below follows a concert poster by Josef Müller-Brockmann from 1957. The red areas are colour areas, a number of columns wide and a number of lines deep, and some move down by whole lines.

Each area also fills the gutter after it, so that only a hairline is between two areas. The names are on the red area, in the colour of the page. The small names are aligned on the right, against the gutter before the large names, and each of them is on a baseline of a large name. The details below start at the same column edge as the large names.

karl
josef
emil
armin
max

gerstner
müller-brockmann
ruder
hofmann
bill
grid systems
in graphic design

swiss typography
1950 to 1970

4. poster

unit 16 pixels
column 48 pixels
gutter 32 pixels
baseline grid 24 pixels
twelve columns
type area 928 pixels

made with css
text-box, round, mod
no pictures

Each part of the page is on one grid:
the narrow screens

The other sections of this page describe the grid on a wide screen, with twelve columns. On a narrower screen, the grid has fewer columns. The columns and the gutters keep their widths, and only the number of columns changes. Thus each baseline stays on a grid line.

Screen widthColumnsType area
992 or more12928
592 to 9917528
432 to 5915368
Less than 4324288

The values are in pixels, for a text size of 16 pixels. The type area is in the middle of the screen, and the page margins at its left and right get the width that is left. Each page margin is at least one gutter wide. With four columns, it is at least one unit wide.

With seven columns or fewer, no columns are beside the text. A picture or a note beside a paragraph then goes below the paragraph, with the margin of a paragraph above it. A note that refers to a word goes into the line, directly after that word. It is in parentheses and keeps its italic style. In the full-width example, the paper and the red area stay behind the text. With seven columns, the red area is five columns wide, and two of the bars are in the last two columns: one from the top edge, one to the bottom edge. The small names are in the first column, and the large names and the details are in the other columns. With five columns or fewer, the bars are not shown, and with four columns, the large names are one size smaller.

A pull quote moves into the page margin only when the page margin is wide enough for its columns and one gutter. When the page margin is narrower, the quote moves by fewer columns, or it stays in the text width. Text that runs up or down in the page margin then goes above its paragraph, in the first column, or a class hides it.

With five columns or fewer, a picture inside a paragraph is not wider than two columns, so the text beside it has at least half of the columns. The columns of a table are not on the columns of the page. Their widths come from their content, and one unit is between two columns. Fields and buttons that are side by side go to the next row when they do not fit. A box with no field and no button has a padding of two units at its left and at its right. In a box, the marks of a list go into the padding, as they go into the page margin outside a box. A colour area with words, bars and rules becomes smaller as a whole. Its grid, its words and its small text get smaller with the width of the area, so that the layout and all of the text stay the same. A class can show a box as a dashed outline, with no background. The box with the table has this class, with a black outline.