Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Set the color of the four borders using CSS
To set the color of the four borders, use the border-color property. You can try to run the following code to set border color for all the borders
Example
<!DOCTYPE html>
<html>
<head>
<style>
p {
border-style: dashed;
border-color: #808000 #800000 #FF0000 #FFFF00;
}
</style>
</head>
<body>
<p>This is demo text with four colored border.</p>
</body>
</html>
Output

Advertisements
