Set a Border Between Two Lines with CSS



Use the border-style property with double value to set a border with two lines. You can try to run the following code to implement border-style property:

Example

<html>
   <head>
   </head>
   <body>
      <p style = "border-width:4px; border-style:none;">
         This is a border with none width.
      </p>
      <p style = "border-width:4px; border-style:double;">
         This is a border with two solid lines.
      </p>
   </body>
</html>
Updated on: 2020-02-03T06:31:20+05:30

274 Views

Kickstart Your Career

Get certified by completing the course

Get Started