Set the width of image border with CSS

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 17-Apr-2018 09:49:56
Advertisements