CSS Questions and Answers Part-20

1. _____________ property specifies the direction in which a marquee should move.
a) marquee-style
b) marquee-play-count
c) marquee-direction
d) none of the mentioned

Answer: c
Explanation: Syntax:
marquee-direction: forward | reverse

2. ___________ property defines a mask to be used as a box’s overlay in order to clip the box to a complex shape.
a) mask
b) mask-box-image
c) mask-attachment
d) mask-origin

Answer: a
Explanation: Syntax:
mask: mask-attachment

3. _____________ property specifies whether the mask should scroll or stay fixed when the page is scrolled.
a) mask-image
b) mask-box-image
c) mask-attachment
d) mask-origin

Answer: c
Explanation: Syntax:
mask-attachment: fixed | scroll

4. ___________ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element’s box.
a) mask-image
b) mask-box-image
c) mask-attachment
d) mask-origin

Answer: d
Explanation: Syntax:
mask-origin: border | content | padding

5. Which of the following property defines the offset from an element’s border and its outline?
a) outline-radius
b) opacity
c) outline-offset
d) overflow-style

Answer: c
Explanation: Syntax:
outline-offset: length | inherit

6. Which of the following property allows a marquee to be used in the case of a text overflow?
a) overflow-style
b) opacity
c) overflow-x
d) perspective

Answer: c
Explanation: Syntax:
overflow-style: auto | marquee-block | marquee-line

7. Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?
a) scrollbar-base-color
b) scrollbar-arrow-color
c) scrollbar-darkshadow-color
d) scrollbar-face-color

Answer: d
Explanation: Syntax
scrollbar-face-color: colors

8. Which of the following property is used to give a 3-D sense of depth to an element?
a) overflow-style
b) opacity
c) overflow-x
d) perspective

Answer: d
Explanation: Syntax:
perspective: none | number

9. Which of the following property is used to set the color of the arrow icon within a scroll bar?
a) scrollbar-base-color
b) scrollbar-arrow-color
c) scrollbar-darkshadow-color
d) scrollbar-face-color

Answer: b
Explanation: Syntax:
scrollbar-arrow-color: color

10. Which of the following property defines the text alignment rules on the alignment of the last line of an element?
a) text-justify
b) text-fill-color
c) text-align-last
d) none of the mentioned

Answer: c
Explanation: Syntax
text-align-last: auto | center | justify | left | right | inherit