Responsive Web Design

(Recycled parts from previous projects. All images taken by me.)

Example of a media query.

The background color of the page will change (along with the flexbox and grid container color) depending on what device/ what browser window width you are viewing this page on. If you are viewing this page on a desktop the background will be white, on a tablet or slightly smaller window size the background will be a pale blue, and on a mobile device the background will be a slightly darker shade of light blue.

Example of a fluid layout using a 12-column grid.

Box 1 starts at column 1, is 8 columns wide, and 1 row tall.
Box 2 starts at column 4, is 5 columns wide, and 2 rows tall.
Box 3 starts at column 1, is 3 columns wide, and 3 rows tall.
Box 4 starts at column 9, is 4 columns wide, and 3 rows tall.
Box 5 starts at column 4, is 9 columns wide, and 1 row tall.

Box 1
Box 2
Box 3
Box 4
Box 5

Example of a responsive grid.

(also an example of a media query) Box 1 takes up 2 columns in a desktop layout, 3 columns in a tablet layout, and all 6 columns in a mobile layout.

1
2
3
4
5
6
Box 1
Box 2

Example of a fluid layout using a flexbox.

The images in this flexbox automatically wrap around as the page width grows/shrinks.

dog
dog
dog
dog
dog
dog
dog
dog

Example of a scalable/flexible image.

This image only takes up 25% of the page width.

dog

The box that has been present on the bottom right corner of the page uses fixed positoning.

Jennifer Jiang