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: 2020-01-31T10:08:30+05:30

132 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements