Modern HTML and CSS from the Beginning (Including Sass) - Flex Alignment & Order

Modern HTML and CSS from the Beginning (Including Sass) - Flex Alignment & Order

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial covers the basics of using Flexbox in CSS to align items both horizontally and vertically. It starts with setting up an HTML structure and applying basic styles. The tutorial then explains how to use justify-content for horizontal alignment and align-items for vertical alignment. It also covers how to align individual items and change their order using CSS properties like align-self and order. The tutorial provides practical examples and tips for using these properties effectively.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to the immediate children of a container when 'display: flex' is applied?

They become block elements.

They become inline elements.

They become grid items.

They become flex items.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property can be used to set a custom width for flex items?

flex-grow

flex-basis

flex-direction

flex-shrink

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value for 'justify-content' in a flex container?

flex-end

center

space-between

flex-start

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which 'justify-content' value distributes space evenly around items?

space-between

flex-start

space-around

space-evenly

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is required for 'align-items' to work properly in a flex container?

A set padding

A set margin

A set height

A set width

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which 'align-items' value aligns items to the center vertically?

center

flex-end

baseline

flex-start

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'align-content' manage in a flex container?

Alignment of individual items

Spacing between items

Vertical alignment of items

Horizontal alignment of items

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?