Set Color, Style, and Width of Lines in a Single Property with CSS



The border property allows you to specify color, style, and width of lines in one property.

Example

You can try to run the following code to specify border property:

<html>
   <head>
   </head>
   <body>
      <p style = "border:3px solid green;">
         This example is showing shorthand property for border.
      </p>
   </body>
</html>
Updated on: 2020-01-31T10:48:00+05:30

102 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements