I'm a total newbie to coding—I literally just started learning HTML yesterday with about two hours of experience under my belt. I'm using 'live server' to preview my code, and resizing the image works just fine there. However, when I try to 'open in browser' using a popular extension, the image remains huge. Here's the code I'm using:
```html
```
I'm still pretty lost and would appreciate any guidance!
3 Answers
Just a heads up, your alt attribute is a bit over the top! Also, the code is making your image 70% the size of its parent container, so you might want to adjust that if it’s still too big.
Another simple fix is to just remove the percent signs from the height and width styles. You could use actual pixel values instead.
ok thanks!
Think they also need to lose the semicolons in the style as they aren’t necessary.
You should try reducing the height and width values a bit more. Something less than 70% could help with fitting it better.
ight, thanks!
I like to be descriptive, thanks for the help!