How come the img I'm using refuses to shrink down?

This is the img I downloaded that the img tag is linked to: https://logos-world.net/wp-content/uploads/2020/09/Google-Logo-2015-present.jpg

On my desktop/vscode it’s massive when I open it in live server, and the smallest height and width on the img element didn’t change a thing.

I tried it in vscode and on codepen, could not replicate the issue. You can barely see the logo at 5x5px. I set it to 100px max-height, max-width and it is the size expected.

Have you linked to your style sheet in your html file in vscode?

<link rel="stylesheet" href="style.css">

Oh wow I had “syles.css” in the script src attribute lol.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.