Computer >> Computer tutorials >  >> Programming >> CSS

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>