CSS outline property

The outline property is a shorthand property that allows you to specify values for multiple properties such as color, style, width of outline. 

Example

<html>
   <head>
   </head>
   <body>
      <p style = "outline:thin solid green;">
         This text is having thin solid freen outline.
      </p>
      <br />
      <p style = "outline:thick dashed #009900;">
         This text is having thick dashed green outline.
      </p>
      <br />
      </p>
   </body>
</html>
Updated on: 2020-03-04T11:23:34+05:30

142 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements