UNIT 24 • STAGE 4 OF 7

About Section

Two-column grid layout and a pull quote

UNIT 4 / 7
STEP 1

The Two-Column Grid Layout

CSS Grid's grid-template-columns: 1fr 1fr divides a container into two equal columns. The 1fr unit means "one fraction of the available space", so two 1fr columns each get exactly half.

The about section uses this pattern to put the restaurant story (text + quote) in the left column and a photo placeholder in the right. This layout is one of the most common patterns in web design: content on the left, visual on the right.

STEP 2

Add the About CSS

Add this after the menu CSS, still inside your <style> block:

👉 Add about CSS: #about { background: var(--smoke); padding: 80px 0; }
.about-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.about-heading { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--cream); margin-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { font-size: 1rem; line-height: 1.8; color: rgba(245,240,230,0.75); margin-bottom: 20px; }
.about-quote { border-left: 3px solid var(--ember); padding: 20px 0 20px 28px; margin: 32px 0; }
.about-quote p { font-family: var(--font-display); font-size: 1.375rem; font-style: italic; color: var(--cream); line-height: 1.5; }
.about-quote cite { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.about-photo { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: rgba(245,240,230,0.3); }
  • grid-template-columns: 1fr 1fr, two equal columns. The fr unit distributes remaining space proportionally. This is the most common two-column layout in CSS Grid.
  • align-items: start, by default, grid items stretch to fill the row's height. start makes each column only as tall as its content, so the text column and photo column sit at the top rather than centering vertically.
  • border-left: 3px solid var(--ember) on the blockquote, the classic editorial pull quote pattern. A colored left border draws the eye and signals that this is a featured quote rather than regular text.
  • aspect-ratio: 4/3, locks the photo placeholder to a 4:3 rectangle regardless of its width. When you add a real image later, this ratio will hold.
STEP 3

Add the About HTML

After the closing </section> of the menu, add the about section. Use the <blockquote> element for the quote; it is the correct semantic HTML for quoted material:

👉 About section structure: <section id="about">
  <div class="container">
    <p class="about-label">Our Story</p>
    <h2 class="about-heading">Rooted in the Land</h2>
    <div class="about-grid">
      <div class="about-text">
        <p>Your restaurant story here...</p>
        <blockquote class="about-quote">
          <p>"Quote here..."</p>
          <cite>&mdash; Chef Winona Cloud, Founder</cite>
        </blockquote>
      </div>
      <div class="about-photo">Photo Coming Soon</div>
    </div>
  </div>
</section>

The <cite> element is the correct semantic tag for the source of a quote. It defaults to italic, but you can override that with CSS, which is what font-style: normal does in the .about-quote cite rule.

Stage 4 Complete

You have a two-column about section with story text, a styled blockquote, and a photo placeholder.

Next: Stage 5 adds a reservation form and a simple footer.

Code Editor
Live Preview