Set the width of image border 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>
Samual Sam
Samual Sam

Learning faster. Every day.


Advertisements