Usage of border property with CSS

The border property is used to set the width of an image border. This property can have a value in length or in %. A width of zero pixels means no border.

Example

You can try to run the following code to set the width of image border:

<html>
   <head>
   </head>
   <body>
      <img style = "border:0px;" src = "/css/images/logo.png" />
      <br />
      <img style = "border:4px dashed green;" src = "/css/images/logo.png" />
   </body>
</html>
Updated on: 2020-01-31T06:38:11+05:30

78 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements