Set outline style as a dotted line with CSS


To set the outline style as a dotted line, use the outline-style property with the value dotted − 

Example

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:7px;outline-style:dotted;">
         This text is having 7px dotted outline.
      </p>
   </body>
</html>

Updated on: 04-Mar-2020

135 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements