Change the style of top border with CSS


The border-top-style property changes the style of top border.

Example

You can try to run the following property to change the style of the top border:

<html>
   <head>
   </head>
   <body>
      <p style = "border-width:2px; border-top-style:solid;">
         Example showing top border
      </p>
   </body>
</html>

Updated on: 31-Jan-2020

81 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements