You are here : cssCSS 3border-top-color

border-top-color - CSS 3

The border-top-color property sets the color of an element's top border.Note: Always declare the border-style property before the border-top-color
property. An element must have borders before you can change the color.


Syntax

border-top-color: color|transparent|initial|inherit;


Example

p 
	{
	   
	border-style: solid;
	   
	border-top-color: #ff0000
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference