Grid and spacings

Abbildung des Rasters auf verschiedenen Ausgabegeräten

Column system for all screen sizes

ETH website design is based on a flexible grid system that allows layouts to be displayed correctly on all screen sizes.

The grid system is built on a 12-column concept. Tablets in vertical format use six columns; mobile devices use four.



The grid is centred in the content area and varies depending on the width of the viewport. The maximum width is 1348 pixels, after which point the background elements stretch out to fill the entire width.

Grid definition per breakpoint

Grid definition for mobile: 320–480 pixels

Grid
Screen Size
Offset  
Gutter
Columns
Column width
Width
XS320 – 479 px24 px16 px4fluid stretch100%
Small
480 – 767 px24 px16 px4fluid stretch100%

Grid definition for tablets or small notebooks (13”): 768–1439 pixels

Grid
Screen Size
Offset  
Gutter
Columns
Column width
Width
Medium768 – 1023 px24 px16 px  8fluid stretch100%
Large1024 – 1279 px40 px16 px
12fluid stretch100%
X Large1280 – 1439 px96 px16 px
12fluid stretch100%

Grid definition for notebooks (15”) and desktops: 1440–1600 pixels

Grid
Screen Size
Offset  
Gutter
Columns
Column width
Width
XXL1440 – 1599 px  min. 96 px16 px12fluid stretchmax. 1348 px
XXXL1600+flexible16 px
12fluid stretchmax. 1348 px

Uniform spacing between design elements

In order to ensure uniform spacing between elements, the following basic sizes have been defined. These sizes are defined as variables in the frontend.

Fixed spacing

$space-fixed-giga
$space-fixed-kilo
$space-fixed-deci
$space-fixed-centi
$space-fixed-mili
$space-fixed-micro
$space-fixed-nano
$space-fixed-pico
48
3224201612
8
4

Responsive spacing behaviour

Spacing size increases as the size of the viewport grows. A responsive spacing table defines how spacing elements behave across different breakpoints. The table sets out how much the spacing changes. This means that each component does not have a fixed distance from other components; rather, it changes according to the table and scales to adapt to different devices.

Spacings für Mobile: 320 – 767 Pixel

$space-curve
Screensize 320–767 Pixel
$space-curve-tera
48
$space-curve-giga32
$space-curve-mega24
$space-curve-kilo24
$space-curve-hekto20
$space-curve-deci16
$space-curve-centi12
$space-curve-mili12
$space-curve-micro8
$space-curve-nano4

Spacings für Tablet und Desktop: 768 – 1600 Pixel

$space-curve
Screensize 768–1600
$space-curve-tera
64
$space-curve-giga48
$space-curve-mega40
$space-curve-kilo32
$space-curve-hekto24
$space-curve-deci24
$space-curve-centi20
$space-curve-mili16
$space-curve-micro12
$space-curve-nano8

Contact

Corporate Design team
  • corporate_design@hk.ethz.ch