
CSS Alignment Quiz

Quiz
•
Other
•
5th Grade
•
Hard
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
Similar Resources on Wayground
15 questions
FMT web developing session 4 HTML5 + CSS3

Quiz
•
KG - Professional Dev...
15 questions
anatomy 2

Quiz
•
5th Grade
15 questions
KSM - How well do you know your company?

Quiz
•
1st - 12th Grade
12 questions
Welcome Back to WES

Quiz
•
3rd - 5th Grade
10 questions
Black Holes: Dark and Deadly

Quiz
•
5th - 8th Grade
16 questions
EPF Ch 6 Vocab Pt2

Quiz
•
KG - 12th Grade
10 questions
Math Quiz

Quiz
•
5th Grade
16 questions
5th Grade C3

Quiz
•
5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
Finding Volume of Rectangular Prisms

Quiz
•
5th Grade
20 questions
States of Matter

Quiz
•
5th Grade
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
16 questions
Figurative Language

Quiz
•
5th Grade
20 questions
Properties of Matter

Quiz
•
5th Grade
20 questions
Adding and Subtracting Decimals

Quiz
•
5th Grade