-3

I tried using all the solutions listed here How remove border around image in css? but they doesnt, work. I am trying to get rid of the black border from the image, I tried the following but it doesn't work. the border is part of the image

    <html>
    </head>
    <body>
    <img src="image.png"  style="border:none;">
    </body>
    </html>

enter image description here

user580950
  • 3,558
  • 12
  • 49
  • 94

1 Answers1

4

Since you've mentioned in the comments that the border is part of the image, CSS isn't really the place to fix it. You could try to put the image inside of a div that is smaller than the image and then set overflow to hidden. But that would be a hacky workaround. The proper way to handle it would be to fix the image itself, using gimp or some other image manipulation tool.

eidsonator
  • 1,319
  • 2
  • 11
  • 25