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


   
      
   
   
      

This is demo text with four colored border.

   

Output

Updated on: 2026-03-11T22:50:41+05:30

90 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements