How can I set the 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>

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 31-Jan-2020

50 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements