Set the color of the right border using CSS

CSSWeb DevelopmentFront End Technology

To set the color of the right border, use the border-right-color property. You can try to run the following code to implement border-color-property −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         p {
            border-style: dotted;
            border-right-color: #FFFF00;
         }
      </style>
   </head>
   <body>
      <p>This is demo text.</p>
   </body>
</html>

Output

raja
Published on 08-May-2018 12:16:02
Advertisements