Which of the following is true about the position: sticky property?

Session5

Quiz
•
Engineering
•
University
•
Hard
Nada Asraf
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A. It requires a z-index to work properly.
It toggles between relative and fixed based on the scroll position.
It only works inside a flex container.
It behaves the same as absolute but with offset restrictions.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If two elements have the same z-index value and are siblings, what determines which one appears on top?
A. Their position in the DOM hierarchy.
Their width and height.
Their display property.
Their overflow property.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when overflow: scroll is set on an element?
Content is clipped and cannot be accessed.
Scrollbars are visible only when content overflows.
Content is always visible with a scroll bar, even when it doesn't overflow.
Scrollbars are always hidden.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property combination is most suitable for centering an element both horizontally and vertically inside a parent container?
display: inline-block; margin: auto;
text-align: center; line-height: 50%;
. float: center; margin: auto;
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property is commonly used to make a navigation bar fixed at the top of the page?
position: fixed;
position: sticky;
position: relative;
position: absolute;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS layout system uses grid-template-rows and grid-template-columns properties?
Box Model
Flexbox
CSS Grid
Float Layout
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following values is NOT valid for the position property?
static
relative
inherit
float
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Quiz on Design of steel structural elements

Quiz
•
University
20 questions
Session6

Quiz
•
University
20 questions
Optical Encoders Quiz

Quiz
•
University
15 questions
Quiz Master's 2.0

Quiz
•
University
20 questions
Sensors and Transducers Quiz

Quiz
•
University
20 questions
Engineering and Manufacturing Concepts

Quiz
•
10th Grade - University
19 questions
AVINYA 2K25

Quiz
•
University
25 questions
css exam

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade