Which CSS property allows you to set multiple list properties at once?
- A.list-style-type
- B.list-style
- C.list-style-position
- D.list-style-image
Show answer
Explanation
The correct answer is B, list-style. It is a shorthand property, which means it sets several related properties in a single declaration: the type of the marker, its position and an image to use as the marker, in any order and with the omitted ones falling back to their default values. CSS has several such shorthand properties, among them font, background, margin, padding and border. A is wrong because list-style-type sets only the kind of marker, such as a disc, a circle, a square, decimal numbers or Roman numerals. C is wrong because list-style-position sets only whether the marker sits inside or outside the content box of the list item. D is wrong because list-style-image sets only a picture to be used in place of the standard marker. Each of those three is a single longhand property, and the shorthand list-style is the one that carries all three.