Test Series - css

Test Number 9/59

Q: Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?
A. border
B. padding
C. border-collapse
D. border-width
Solution: The border-width property sets the width of an element’s four borders. This property can have from one to four values.
Q: Identify the CSS property defining bottom-left corner shape of the border?
A. border-radius
B. border-corner-radius
C. border-bottom-left-radius
D. border-left-radius
Solution: CSS3 border-radius property allows you can give any element “rounded corners”.
Q: Select the CSS property that sets the width of an element’s bottom border?
A. border-width
B. border-bottom
C. border-width-down
D. border-bottom-width
Solution: The border-bottom-width CSS property sets the width of the bottom border of a box.
Q: Which of the following CSS property border-color property sets the color of an element’s four borders?
A. border-background
B. border-background-color
C. border-color
D. all of the mentioned
Solution: The border-color property sets the color of an element’s four borders. This property can have from one to four values.
Q: Choose the CSS property that can be used for collapsing the borders between table cells?
A. border
B. collapse-border
C. border-collapse
D. border-cell
Solution: The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.
Q: Which CSS property can be used to set the image as border instead of the border style?
A. background-image
B. border-image
C. background-image-source
D. border-image-source
Solution: The border-image-source property specifies the path to the image to be used as a border (instead of the normal border around an element).
Q: In how many way border-image-width CSS property can be defined?
A. 4
B. 6
C. 8
D. 9
Solution: The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge.
Q: Which of the following is not an appropriate value for border-collapse?
A. all
B. collapse
C. inherit
D. separate
Solution: Except option a, all other values can be set to border collapse CSS property.
Q: Which of the following specifies the distance between the borders of adjacent cells?
A. border-spacing-cell
B. border-width-spacing
C. border-spacing
D. cell-spacing
Solution: The border-spacing property sets the distance between the borders of adjacent cells (only for the “separated borders” model).
Q: Which of the following property defines the border-width, border-style and border-color of an element’s top border in a single declaration?
A. border
B. border-top
C. border-top-corner
D. border-top-style
Solution: The border-top shorthand property sets all the top border properties in one declaration.

You Have Score    /10