Which property adds shadow to text?
Anonymous Quiz
76%
text-shadow
13%
font-shadow
9%
shadow-text
2%
letter-shadow
If an element has all three applied (inline style, ID selector, and class selector), which one will decide the final style?
Anonymous Quiz
20%
Class selector
14%
ID selector
59%
Inline style
8%
Block (element) selector
Which CSS property is used to set the style of text (normal, italic, oblique)?
Anonymous Quiz
8%
font-weight
72%
font-style
9%
text-transform
11%
text-decoration
In the CSS box model, which part is the innermost?
Anonymous Quiz
10%
Border
22%
Padding
65%
Content
4%
Margin
Which part of the box model adds space inside the border, around the content?
Anonymous Quiz
12%
Margin
77%
Padding
12%
Border
0%
Outline
Which property adds space outside the elements border?
Anonymous Quiz
90%
Margin
4%
Padding
2%
Border
4%
Outline
Which property sets the space between border and content?
Anonymous Quiz
68%
Padding
16%
Margin
8%
Outline
8%
Spacing
If div { width: 200px; padding: 20px; border: 10px solid; margin: 30px; }, what is the total width?
Anonymous Quiz
16%
200px
6%
220px
16%
240px
63%
260px
👍4👎2
Which CSS property includes padding and border in the elements total width and height?
Anonymous Quiz
0%
box-type
14%
box-model
72%
box-sizing: border-box
14%
box-border
What is the default value of box-sizing?
Anonymous Quiz
42%
content-box
26%
border-box
6%
padding-box
26%
auto
Which property creates space between the border and the content?
Anonymous Quiz
88%
padding
6%
margin
2%
outline
4%
gap
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