Start interactive tutorial

← Back to Exercises
  • Layouts

  • HTML and CSS

  • CSS Grid

Build Website Layouts with CSS

Learn how to build layouts with an interactive and auto-graded tutorial. Master CSS properties like display, position, float, and z-index. Understand how to center content, create sidebars, and use pseudo-elements. Enhance your web design skills with practical, auto-graded tutorials.

Work on real-life coding environments with LearnPack.

Get instant help with our AI mentor: Rigobot.

No installation, you go directly to programming

Difficulty

  • easy

Average duration

8 hrs

Difficulty

  • easy

Average duration

8 hrs

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

8 hrs

Difficulty

  • easy

Average duration

8 hrs

Difficulty

  • easy

Average duration

8 hrs

Difficulty

  • easy

Average duration

8 hrs

You'll be learning the following concepts:

  1. Display vs Position.

  2. Display: Flex property.

  3. Float property.

  4. How to center content.

  5. Using :before and :after.

How are the exercises organized?

Each exercise is a small React application containing the following files:

  1. index.html: your HTML code goes here.
  2. styles.css: your CSS code goes here.
  3. README.md: contains exercise instructions.
  4. test.js: you don't have to open this file, it contains the testing script for the exercise.

Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated.

Contributors

Thanks goes to these wonderful people (emoji key):

  1. Alejandro Sanchez (alesanchezr), contribution: (coder) 💻 (idea) 🤔, (build-tests) ⚠️ , (pull-request-review) 🤓 (build-tutorial) ✅ (documentation) 📖

  2. Paolo Lucano (plucodev), contribution: (coder), (build-tests) ⚠️

This project follows the all-contributors specification. Contributions of any kind are welcome!

Sign up and get access to this free interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

8 hrs

Difficulty

  • easy

Average duration

8 hrs