Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge | Layouts
Introduction to CSS Part II
course content

Kursusindhold

Introduction to CSS Part II

Introduction to CSS Part II

1. Text Styles
2. Сolors and Background
3. Layouts

book
Challenge

Note

You can write the code in the styles.css file of the following sandbox. To see the rendered page, drag it from the right edge of a sandbox window.

Task

Following are the tasks that you need to perform for the flexbox challenge:

  1. Header and footer to a width of 100% and height of 50px with fixed position.

  2. Set the header to a top value of 0.

  3. Set the footer to the bottom.

  4. Style the main element as:

    • Display to flex;

    • The elements to wrap;

    • padding to 50px for the top and bottom;

    • 0 for the rest.

  5. Fix the width of the middle column to 300px using the flex shorthand.

Here is the result you should get. If you are having problems, you can drag the code part with a solution from the left edge of the sandbox window.

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 7

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

course content

Kursusindhold

Introduction to CSS Part II

Introduction to CSS Part II

1. Text Styles
2. Сolors and Background
3. Layouts

book
Challenge

Note

You can write the code in the styles.css file of the following sandbox. To see the rendered page, drag it from the right edge of a sandbox window.

Task

Following are the tasks that you need to perform for the flexbox challenge:

  1. Header and footer to a width of 100% and height of 50px with fixed position.

  2. Set the header to a top value of 0.

  3. Set the footer to the bottom.

  4. Style the main element as:

    • Display to flex;

    • The elements to wrap;

    • padding to 50px for the top and bottom;

    • 0 for the rest.

  5. Fix the width of the middle column to 300px using the flex shorthand.

Here is the result you should get. If you are having problems, you can drag the code part with a solution from the left edge of the sandbox window.

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 7
Vi beklager, at noget gik galt. Hvad skete der?
some-alt