​Scott works for an online retailer and has to format the border around each element on their web page. He has to set the border design and the border color for each element. He needs to understand how the appearance and color of the border can be defined. ​Scott wants to use the color gray for the top and left borders and black for the right and bottom borders for an element. Which of the following should he use to define this?

Respuesta :

CPED

Choices for the question are not given to select from, but the answer is obvious and unique so it is given below.

Answer:

border-color: grey, black, black, grey;

Explanation:

For making the colored borders on a web page, the property border-color of used. It has 1 to 4 elements/values  (as needed) to color the borders. The order of the borders (elements) is given below:

  1. top
  2. right
  3. bottom
  4. left

Now as explained above these elements can also be three instead of four displaying the colors of first three sides that are top, right and bottom.

Similarly, when one or two elements will be given the color of respective borders will be changed.

Note:

We should first set the border-style (design) property then move towards the color property.

i hope it will help you!

ACCESS MORE