CSS Borders


  1. Which of the following property defines the color of an element’s right border?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Syntax: border-right-color: color | transparent


  1. Which of the following property defines the border-width, border-style and border-color of an element’s top border in a single declaration?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The border-top shorthand property sets all the top border properties in one declaration.



  1. Which of the following specifies the distance between the borders of adjacent cells?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The border-spacing property sets the distance between the borders of adjacent cells (only for the “separated borders” model).


  1. Which of the following is not an appropriate value for border-collapse?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    all other values can be set to border collapse CSS property.



  1. In how many way border-image-width CSS property can be defined?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    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.