How can I set the color, style, and width of lines in a single property with CSS?

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 17-Apr-2018 08:34:31
Advertisements