CSS Alignment Quiz

CSS Alignment Quiz

5th Grade

11 Qs

quiz-placeholder

Similar activities

GUESS THE LOGO

GUESS THE LOGO

5th Grade

10 Qs

Atoms

Atoms

2nd - 5th Grade

6 Qs

anatomy 2

anatomy 2

5th Grade

15 Qs

Kowalski Analysis

Kowalski Analysis

KG - Professional Development

7 Qs

KSM - How well do you know your company?

KSM - How well do you know your company?

1st - 12th Grade

15 Qs

Welcome Back to WES

Welcome Back to WES

3rd - 5th Grade

12 Qs

Arranging the Elements

Arranging the Elements

5th Grade

10 Qs

FMT web developing session 4 HTML5 + CSS3

FMT web developing session 4 HTML5 + CSS3

KG - Professional Development

15 Qs

CSS Alignment Quiz

CSS Alignment Quiz

Assessment

Quiz

Other

5th Grade

Hard

Created by

Arbresha Ajrula

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What property is used to center a block element horizontally?

margin: auto;

text-align: center;

float: left;

position: relative;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which property is used to center text inside an element?

text-align: center;

margin: auto;

float: right;

display: block;

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What should be set to prevent a block element from stretching to the edges?

Width property

Height property

Padding property

Margin property

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you center an image using CSS?

Set left and right margin to auto

Use text-align: center;

Use position: absolute;

Set display to inline-block

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which property can be used to center elements vertically using padding?

Position property

Margin property

Padding property

Display property

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the line-height property in centering?

To float elements

To set margins

To change font size

To vertically center text

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the effect of using position: absolute?

Removes the element from normal flow

Centers the element

Floats the element to the left

Changes the display type

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?