CSS Questions and Answers Part-12

1. Which of the following property adds padding to the top of an element?
a) height
b) padding-height
c) top
d) padding-top

Answer: d
Explanation: padding-top

2. Which of the following display property value is described by treats the element as inline?
a) inline-block
b) list-item
c) block
d) inline

Answer: d
Explanation: inline

3. Which of the following property defines the style for the bottom border of an element?
a) border-bottom-style
b) border-collapse
c) border-style-bottom
d) none of the mentioned

Answer: a
Explanation: border-bottom-style

4. Which of the following property defines the style for the left border of an element?
a) border-style
b) border-left-style
c) border-left-width
d) border-right

Answer: b
Explanation: border-left-style

5. Which of the following visibility property value is described by The element is not visible, but the layout of surrounding elements is not affected?
a) visible
b) hidden
c) collapse
d) none of the mentioned

Answer: b
Explanation: hidden

6. Which of the following display property value is described by used internally by browsers to create list items. Of no practical value to web designers?
a) inline-block
b) list-item
c) group
d) none

Answer: b
Explanation: list-item

7. Which of the following property controls the horizontal overflow of a block or inline block?
a) overflow-x
b) overflow
c) overflow-y
d) overflow-k

Answer: a
Explanation: overflow-x

8. Which of the following Overflow property value is described by scrollbars should be provided if the content is too big, but actual implementation is left up to the browser?
a) visible
b) scroll
c) auto
d) hidden

Answer: c
Explanation: auto

9. Which of the following property sets a consistent margin on all four sides of the affected element?
a) boder
b) margin
c) padding
d) none fof the mentioned

Answer: b
Explanation: margin

10. Which of the following box-sizing property value is described by width and height include content, padding, and borders?
a) border-box
b) content-box
c) content-box
d) none fof the mentioned

Answer: a
Explanation: border-box