Skip to content

Latest commit

 

History

History
107 lines (58 loc) · 3.92 KB

File metadata and controls

107 lines (58 loc) · 3.92 KB

Challenge 1

Create a centred box (500px by 500px) in the middle of a full width page using flexbox.

Challenge 2

Create a row of 4 boxes (200px by 200px) using flexbox.

Test out some different ways to align the boxes on the horizontal axis using justify-content.

Challenge 3

Build a similar navbar to the image below with flexbox. Add it to your component library you started yesterday.

Challenge 4

Complete the following Ed challenge https://edstem.org/courses/4230/challenges/10881

Challenge 5

Build a similar card based layout using the video below as a reference.

https://youtu.be/QGHpc95EZNQ

Think about what you'll need to attack this problem.

  1. A container flexbox
  2. Children inside of the flexbox
  3. Media queries for the different sizes of the children based on screen sizes
  4. A background image inside of the child
  5. Content that sits just below the background image
  6. Using margin to ensure that the edge of your children have the same vertical position as your header

Challenge 6

Optional

Challenge 7

Create a page with a navbar (with a height of 60px) and a container (with a height of 100vh) underneath the navbar.

You'll need to look up CSS calc for an elegant solution in making sure the page doesn't scroll at all.

Once you solve that implement a similar box-shadow on the navbar, style the links and ensure that the message in the container is perfectly centered on the page using flexbox.

Challenge 8

Create a similar form to the image below (with a username, password and submit button) using flexbox.

Think about what you'll use for your flex-direction. Centre the form in the middle of the page.

Challenge 9

Challenge 10

The image below of eastbay.com is the goal layout.

This is a tricky task that will require a lot of flexbox. Start simple. Think about the individual components the layout might be using.

The top navbar with text could be its own flexbox. The filter section could be its own flexbox. The cards could also be their own flexbox 🤯.

The card section is a tough one. Think about making your flex children have the width and your inner card can take the height and margin.

Here is the result of some code I wrote that demonstrates a bare bones setup for the goal layout. Let me know if you have questions.

Challenge 11

Create this layout with flexbox.

In the map section add a Google Map using the Google Maps API.

Challenge 12

This challenge ties everything we've done in CSS together. It's practice for your portfolio assignments.

Firstly, go to this link and download the template HTML and CSS files.

Your goal is to style the provided markup 🎨. So no editing of the HTML! You can only write CSS.

If you're proud of your work I'd love for you to demo it to the class on Tuesday next week!

Challenge 13

Watch all of Wes Bos's flexbox tutorials.

Challenge 14

Complete all of the freecodecamp flexbox challenges.