Which property creates transparent space around an element?
Anonymous Quiz
26%
padding
52%
margin
14%
border
8%
outline
Border is always placed...
Anonymous Quiz
10%
Inside the padding
86%
Between padding and margin
4%
Outside margin
0%
Before content
Which CSS property can set all margins at once?
Anonymous Quiz
9%
margin-all
85%
margin
0%
spacing
6%
margin-set
To center a block element horizontally, we use:
Anonymous Quiz
8%
padding: auto;
39%
margin: auto;
39%
text-align: center;
14%
float: center;
Which is the default value of the position property?
Anonymous Quiz
10%
relative
62%
static
14%
absolute
14%
fixed
If an element has margin: 20px 10px;, what does it mean?
Anonymous Quiz
85%
Top & bottom 20px, left & right 10px
11%
Top & right 20px, bottom & left 10px
2%
All sides 20px
2%
All sides 10px
Which property is not part of the box model?
Anonymous Quiz
4%
Margin
2%
Padding
87%
Outline
6%
Border
An element with position: relative; is positioned relative to...
Anonymous Quiz
9%
The viewport
43%
The nearest positioned ancestor
37%
Its normal position
11%
The document root
An element with position: absolute; is positioned relative to...
Anonymous Quiz
4%
The viewport
76%
The nearest positioned ancestor
16%
Its normal position
4%
The body always
Which positioning makes an element stay fixed during scroll?
Anonymous Quiz
2%
relative
11%
absolute
76%
fixed
11%
sticky
Which positioning allows an element to switch between relative and fixed depending on scroll?
Anonymous Quiz
58%
sticky
31%
absolute
8%
static
2%
inline
Which property is used to move an element 20px down?
Anonymous Quiz
13%
padding-top: 20px;
50%
top: 20px;
15%
margin-top: 20px;
23%
bottom: 20px;
Which positioning ignores normal document flow?
Anonymous Quiz
24%
static
52%
absolute
13%
relative
11%
sticky
Which property moves an element away from the left edge?
Anonymous Quiz
46%
left
19%
right
33%
margin-left
2%
float
🥰1
Which positioning is best to create a navigation bar fixed at the top?
Anonymous Quiz
4%
relative
13%
absolute
73%
fixed
9%
sticky
Which positioning removes an element from the flow but keeps its space reserved?
Anonymous Quiz
59%
relative
26%
absolute
9%
static
7%
none
Which property enables Flexbox on a container?
Anonymous Quiz
84%
display: flex;
7%
display: grid;
7%
display: inline-flex;
2%
flex: 1;
Which property controls the direction of flex items?
Anonymous Quiz
7%
flex-flow
68%
flex-direction
14%
justify-content
11%
align-items
Default value of flex-direction is:
Anonymous Quiz
16%
column
71%
row
9%
row-reverse
4%
column-reverse
Which property aligns flex items horizontally?
Anonymous Quiz
67%
justify-content
20%
align-items
11%
flex-wrap
2%
order