Fluid Typography

Getting right to the code, here’s a working implementation:

html {
  font-size: 16px;
@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 6 * ((100vw - 320px) / 680));
@media screen and (min-width: 1000px) {
Avatar of Geoff Graham
Geoff Graham on (Updated on )

Viewport Sized Typography

There are values in CSS that are for sizing things in relation to the viewport (the size of the browser window). They are called viewport units, and there are a number of them that do slightly different (all useful) …

Avatar of Chris Coyier
Chris Coyier on (Updated on )