Build your first website · Lesson 07

Make Your Website
Work on Every Screen.

Learn how to observe, test, and improve your website across desktop, tablet, and mobile—without losing its photographs, identity, or creative direction.

Complete beginner70–75 minutesNo coding required
The same photography portfolio adapting from a three-column desktop gallery to tablet and single-column mobile layouts
Lesson 07One identity, every screen

Your goal

Adapt the layout.
Keep the vision.

Responsive design is not simply shrinking a desktop page. It gives each screen a comfortable composition while preserving what makes the website yours.

The same gallery, three useful arrangements

Desktop · 3 columns
→
Tablet · 2 columns
→
Mobile · 1 column
Preview three widthsRecognize real problemsDescribe one clear fixTest before and after publishing

Your design choices remain yours. Some differences are intentional. Improve usability without flattening the creative direction.

01

10 minutes

Understand Responsive Design

Responsive design reorganizes a website for the available space. It is adaptation—not miniaturization.

1440DesktopSpace for rhythm and columns
768TabletFewer columns, comfortable touch
390MobileFocused vertical flow

Text may wrap onto more lines. Navigation may need a different arrangement. Photographs may be cropped deliberately—but they should not be distorted.

What can stay consistent

PhotographsColoursTypographyVisual identityCreative direction
A useful first request

“Make this page easier to use on mobile while keeping its visual style.”

Checkpoint

02

15 minutes

Preview Different Screens

Chrome’s Device Toolbar lets you simulate many screen widths using the computer you already have.

Start locally

“Help me start my website preview.”

localhost:4321
▣Device Toolbar
  1. 01

    Open Developer Tools

    In Chrome on Mac, right-click the page and choose Inspect. Other browsers offer similar tools.

  2. 02

    Activate device preview

    Look for the phone-and-tablet icon at the top of the panel and click it.

  3. 03

    Change the width slowly

    Watch images, text, navigation, buttons, and whole sections move or resize.

  4. 04

    Return to normal

    Turn off Device Toolbar, then close the Developer Tools panel.

MOBILE390 px
TABLET768 px
DESKTOP1440 px

Checkpoint

03

10 minutes

Identify Display Problems

Observe first. Not every desktop-to-mobile difference is a bug; some are intentional compositions.

→
01

Horizontal overflow

Content extends beyond the screen and forces sideways scrolling.

Aa
02

Unreadable text

Type is too small or tightly spaced to read comfortably.

03

Image trouble

A photograph is distorted, escapes the screen, or becomes unusably small.

04

Crowded navigation

Links overlap or become difficult to understand and use.

05

Overlapping elements

Text, images, or buttons unintentionally cover one another.

06

Small tap targets

Buttons are too small or links sit too close together for fingers.

The observation method

01ObserveWhat looks wrong?
→
02IdentifyWhere does it happen?
→
03DescribeWhat should happen?
YOUR OBSERVATION NOTE
Page
Gallery
Screen
Mobile · 390 px
Problem
Two photographs overlap
Desired result
Add space between them
Practice · Inspect your website

Find one possible improvement.

Use a small-screen preview and record what you see. If everything already works, that is a valid result.

Checkpoint

04

15 minutes

Improve With Codex

Turn what you observed into a precise request with four parts.

01PageGallery page
02ScreenMobile
03ProblemPhotos overlap
04Desired resultAdd spacing
VAGUE

“Fix my website on mobile.”

Too broad · may change too much
CLEAR

“On my gallery page, the photos overlap on mobile. Fix the spacing without changing the desktop layout.”

Location · screen · problem · boundary
IMAGE

“On this page, the image extends beyond the screen on mobile. Make it fit without stretching it.”

TEXT

“On my homepage, the text is too small on mobile. Make it easier to read while keeping the same style.”

NAVIGATION

“My navigation is crowded on mobile. Suggest a simpler layout before changing anything.”

LAYOUT

“Two elements overlap on tablet. Fix the overlap without changing the desktop layout.”

Choose your path

A · PROBLEM FOUND
  1. Describe it clearly.
  2. Review the proposed change.
  3. Test the affected width.
  4. Check mobile, tablet, and desktop.
B · ALREADY WORKS

Do not change the website unnecessarily.

“Review my website for responsive design problems. Explain what you find without changing anything.”

Checkpoint

05

10 minutes

Test on Real Devices

A real phone adds touch, real scrolling, browser controls, and orientation to your test.

BROWSER SIMULATION

Fast testing at many widths. Best for finding layout changes.

+
REAL PHONE

Real touch, scrolling, navigation, and browser behaviour.

Know which version you are viewing

LOCAL Unpublished changesRuns on your computer
≠
PUBLIC Last deployed versionOpens on your phone
  1. 01

    Open the public website

    Use your smartphone browser and visit the address published in Lesson 05.

  2. 02

    Explore naturally

    Scroll, view photographs, follow links, use the navigation, and read the text as a visitor would.

  3. 03

    Try both orientations

    If available, compare portrait and landscape. This step is optional.

  4. 04

    Record observations

    Use Page, Screen, Problem, and Desired result for anything you notice.

PORTRAIT
↻
LANDSCAPE

Checkpoint

06

10–15 minutes

Review & Publish

Publishing is optional when nothing changed. Testing and understanding the result are always valuable.

Preview→Observe→Describe→Improve if needed→Test→Review→Publish if needed→Test online
Technical check

“Check my recent changes for errors and run the website build. Explain any problems you find. Don’t modify any files.”

CHANGES MADE

Review and publish

  1. Review files in GitHub Desktop.
  2. Commit with a clear summary.
  3. Push origin.
  4. Wait for Cloudflare.
  5. Test desktop and phone online.
NO CHANGES NEEDED

Keep the observations

  1. Review what you noticed.
  2. Confirm you can identify problems.
  3. Practice describing them clearly.
  4. Save notes for future updates.
  5. Do not create an empty commit.
Review
→
Commit + push
→
Deploy
→
✓Test online

Checkpoint

End of lesson 07

Your design now adapts.

You can preview multiple screen sizes, recognize common display problems, describe them precisely, test on a real phone, and publish responsive improvements only when needed.

PreviewObserveDescribeImproveTestPublish
Coming next · Lesson 08Make Your Website Faster & More Accessible

Optimize photographs, recognize performance problems, improve accessibility, and publish a website that feels as good as it looks.