Hello everyone, I’m setting a picture that keeps scaling up and down. My code works just fine but the thing is there are a few marks that appear beside my picture on its right side after it scaled back to its original size. I found out that the problem only occurs when I use any photo that I search on Google because I’ve tried a couple of images on Pixabay but nothing happened. Can anyone help me, please? Thank you!
my image link(Mr. Donald Knuth’s photo on Wikipedia) that I want to use:
I cannot reproduce the behaviour you mentioned with the code you have given. Would you mind sharing something like a CodePen showing the incorrect behaviour?
Also, remember that any image URL needs to be a link to an image, and not a Google search page.
Thank you, for linking to that. Unfortunately, I have not seen this before, and cannot think of a way to prevent it, other than match the background color with a border: