Home
CSS
CSS Borders
Border Color
Tryit: Different border color for each side
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> p.one { border-style: solid; border-color: red green blue yellow; /* red top, green right, blue bottom and yellow left */ } </style> </head> <body> <h2>The border-color Property</h2> <p>The border-color property can have from one to four values (for the top border, right border, bottom border, and the left border):</p> <p class="one">A solid multicolor border</p> </body> </html>