Answer: When we want to set any element or control Top border color,then we use border-top-color CSS property.It's an in-built CSS property.
Note:- Always declare the
border-style property before the border-top-color property.An element must have borders before you can change the color.
For Example:-
div
{
border-style:solid;
border-top-color:red;
}
Asked In: Many Interviews |
Alert Moderator