CS130: Spring 2022

Tools and Technologies of the World Wide Web

CS130: Spring 2022

Lessons > 7. Creating Page Layouts w/CSS: Flex

Exercise Files

Slides

Lecture Video(s)

Readings

  1. When to use Flex versus CSS Grid?.
  2. Flexbox Froggy.
    Please try to complete at least the first 12 levels before class!
  3. The Box Model (Review). CS 130 Course Website
  4. Flexbox. CS 130 Course Website
  5. Media Queries. CS 130 Course Website

Today, we will be delving into CSS layouts, which is arguably among the most difficult parts of this course. Sarah and the course staff strongly suggest that you invest some time into doing the readings / exercises this week. Putting in an investment early on will make you a much better designer / web programmer, and give you more power to instantiate your designs later in the quarter.

Box Model & Flexbox Exercises

In class, you will try to build the following layouts using flexbox:

Task 1: Card

Task 2: Cards for Desktop, Tablet, and Mobile

Task 3: Cards for Desktop, Tablet, and Mobile

Task 4: Nav Bar