Project: Modern Typography
Instructions

Use a Google Font

Step 1 of 4
Use the Google Font Geist. index.html already loads it.

Instructions

In style.css:

  • In the body { rule, add font-family: 'Geist', sans-serif and line-height: 1.6.
  • In the h2, h3 { rule, add letter-spacing: -1px.
Example solution
  • Find the rule that starts with body {. Write these lines inside it, before its }:
    font-family: 'Geist', sans-serif;
    line-height: 1.6;
  • Find the rule that starts with h2, h3 {. Write these lines inside it, before its }:
    letter-spacing: -1px;
How it works

Make a huge headline

Step 2 of 4
Make a huge headline. #hero h1 means: the h1 in the header.

Instructions

In style.css:

  • At the end of style.css, write a new rule for #hero h1. Do not write it in #hero {.
  • Give it font-size: 72px, line-height: 1 and letter-spacing: -3px.
  • Add max-width: 700px, margin: 8px 0 16px and text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35).
Example solution
  • At the end of style.css, after all the other rules, write:
    #hero h1 {
      font-size: 72px;
      line-height: 1;
      letter-spacing: -3px;
      max-width: 700px;
      margin: 8px 0 16px;
      text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    }
How it works

Add small labels

Step 3 of 4
Add small labels in capital letters over the headline and on every photo card.

Instructions

In style.css:

  • At the end of style.css, write one rule for .kicker, .country.
  • Give it text-transform: uppercase, letter-spacing: 2px, font-size: 12px, font-weight: bold and margin: 0.
  • Under it, write a second rule for .country with color: #2563EB and margin-top: 12px.
Example solution
  • At the end of style.css, after all the other rules, write:
    .kicker, .country {
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 12px;
      font-weight: bold;
      margin: 0;
    }
  • Under that rule, write one more new rule. It makes the card labels blue. The label over the headline stays white:
    .country {
      color: #2563EB;
      margin-top: 12px;
    }
How it works

Make the quote big

Step 4 of 4
Make the quote the biggest text in its section.

Instructions

In style.css:

  • In the blockquote { rule, add font-size: 30px, font-weight: 600, line-height: 1.3 and letter-spacing: -0.5px.
  • At the end of style.css, give .author color: #94A3B8, text-transform: uppercase, letter-spacing: 2px, font-size: 13px and padding-left: 28px.
Example solution
  • Find the rule that starts with blockquote {. Write these lines inside it, before its }:
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
  • At the end of style.css, after all the other rules, write:
    .author {
      color: #94A3B8;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 13px;
      padding-left: 28px;
    }
How it works
Click Submit to grade your project.