Article page with image

bakgrunnsbilde

Here is the main intro text. This text can be a few lines long. Maybe even longer if you're quite imaginative like myself.

Heading level 2

The first element in a RichText component has no top margin. The last element has no bottom margin. This is to ensure that the RichText component doesn't add any extra space above or below it.

Paragraphs have 0px top margin and 12px bottom margin, except for when the P tag is the last element in a RichText.

Paragraphs support Bold text, Italic text and Links that have an underline by default, which grows thicker on hover. The animation can span multiple lines

Both Heading level 2 (<H2>) and Heading level 3 have a 48px margin above and a 12px margin below. There are some exceptions:

  1. When the heading is the first element in a RichText, the top margin is set to 0. See the H2 above for reference.
  2. When the heading is the last element in a RichText, the bottom margin is set to 0.
  3. When an H3 comes directly after an H2, the top margin of the H3 will be 0. This means that there will be a 12px spacing between H2 and H3, because the H2 has a bottom margin of 12px.

Here is a standalone H2:

A standalone H2

The H2 above has 32px top margin and 12px bottom margin.

Here is a standalone H3:

A standalone H3

The H3 above has 32px top margin and 12px bottom margin, the same as for H2.

Here we have an H2 with an H3 right after it. The margin above the H3 is 0:

An H2

An H3 following an H2

The top margin of the H3 above has been reduced. This is because when an H3 comes directly after an H2, they belong to the same chunk of text.

Quote example with image. Suspendisse efficitur finibus lectus eget placerat. Nam suscipit sem viverra elit iaculis maximus. Integer malesuada erat quis dolor condimentum, in luctus odio ultricies. Nulla luctus at ex ac porta.
Noen Noensen
Tittel
Noen Noensen
Tittel

Here are lists and their specifications.

  • Unordered lists (<UL>) have a 32px margin underneath it.
  • Each item (<LI>) have an 8px margin below it.
  • When an unordered list is the last element in a RichText component, the bottom margin will be 0
  1. Ordered lists (<OL>) have a 32px margin underneath it.
    Each item (<LI>) have an 8px margin below it.
  2. Ordered lists are designed to support two digit numbers.
  3. When an ordered list is the last element in a RichText component, the bottom margin will be 0

Tables have no margin above them and 32px margin below. The same as unordered lists and ordered lists.

Table header Table header Table header
Table data cell Table data cell Table data cellTable data cellTable data cellTable data cell
Table data cellTable data cellTable data cellTable data cell Table data cell Table data cell

Tables with many columns will have a scrollbar. The first column will be frozen. There will be shadows to the right of the first column when scrolling the other columns underneath it. There will also be a shadow on the right of the table when there are more columns to the right.

Table header Table header Table header Table header Table header Table header Table header Table header
Tabledatacell Tabledatacell Tabledatacell Tabledatacell Tabledatacell Tabledatacell Tabledatacell Tabledatacell
Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell
Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell Table data cell
Quote without image. Suspendisse efficitur finibus lectus eget placerat. Nam suscipit sem viverra elit iaculis maximus. Integer malesuada erat quis dolor condimentum, in luctus odio ultricies. Nulla luctus at ex ac porta.
Noen Noensen
Tittel
Noen Noensen
Tittel

This paragraph is the last element in the RichText, so it has no bottom margin.

Published 3/5/2024
Published 3/5/2024
Updated 3/5/2024
Updated 3/5/2024
John Doe

John Doe

Consultant

Security

john@doe.com