Set dotted line for border with CSS


To set dotted line for border, use the border-style property. You can try to run the following code to implement border-style property value dotted to set dotted border:

Example

<html>
   <head>
   </head>
   <body>
      <p style = "border-width:3px; border-style:dotted;">
         This is a dotted border.
      </p>
   </body>
</html>

Updated on: 31-Jan-2020

307 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements