CSS3 Online Test Questions part 5

25. Which is the property used to add transparency to a button?

a. opacity
b. border
c. box-shadow
d. None of the above

Answer: a. opacity

Explanation: Opacity is the property used to add transparency to a button. Default opacity is 1.0. Values will be clamped between 0 and 1 on set.


26. The 'outline-offset' property adds space between an outline and the edge or border of an element.

a. True
b. False

Answer: a. True

Explanation: The above statement is true. The 'outline-offset' property adds space between an outline and the edge or border of an element.


27. Which property specifies the direction in which a marquee should move?

a. marquee-direction
b. marquee-move
c. marquee-play
d. none of the above

Answer: a. marquee-direction

Explanation: The marquee-direction property specifies the direction in which a marquee should move. A marquee is an effect where the content within an HTML element moves - or "scrolls" - (either horizontally or vertically) so that eventually, all content has been displayed at least once.


28. The box-sizing property allows user to include the padding and border in an element's total width and height.

a. True
b. False

Answer: a. True

Explanation: The above statement is true. The box-sizing property allows user to include the padding and border in an element's total width and height.


29. In CSS3, the ____________ property specifies the number of columns an element should be divided into.

a. column-gap
b. column-width
c. column-count
d. None of the above

Answer: c. column-count

Explanation: In CSS3, the column-count property specifies the number of columns an element should be divided into.


30. In CSS3, the ___________ property specifies how many columns an element should span across.

a. column-gap
b. column-width
c. column-span
d. None of the above

Answer: c. column-span

Explanation: In CSS3, the column-span property specifies how many columns an element should span across.