Exercises

CSS Flexbox

Put your CSS Flexbox knowledge to the test. This quiz covers essential flexbox concepts used to build responsive, well-aligned web layouts, including flex-direction, flex-wrap, justify-content, align-items, order, and flex-grow. Explore how flex items behave along the main and cross axes, learn the default direction of a flex container, and check your understanding of centering, spacing, and stretching elements. Ideal for web development students, beginner front-end developers, and anyone reviewing modern CSS layout techniques.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What does 'flex' in CSS Flexbox stand for?

  2. 2

    Which property is used to define the direction of items in a flex container?

  3. 3

    How do we align flex items in the main axis?

  4. 4

    To change the order of rendering of an item, which property would you use?

  5. 5

    If you wanted all items of a flex container to be on one line, what would be the value of 'flex-wrap'?

  6. 6

    Which property defines the ability for a flex item to grow if necessary?

  7. 7

    What's the default value of the 'flex-direction' property?

  8. 8

    How can you center flex items vertically and horizontally within a flex container?

  9. 9

    What property would you use to evenly distribute space between flex items along the main axis?

  10. 10

    What is the effect of setting 'align-items' to 'stretch' in a flex container?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate