You’re targeting a class .img in your CSS, but you have no such class in your HTML, only a div with id=img-div and the image with id=image. Which would be targeted like this, since it’s an id and not a class:
Thank you for the info, I think I understand. I need to a class to use .img in CSS. How do I change it to a class? if that possible, and why does it make such a difference?
It’s basically up to you whether you want to give an element a class or an id, but in this case, you’re supposed to follow the user stories:
Within the “img-div” element, I should see an element with a corresponding id=“image”.
Generally, an id must always be unique, you can only have one id per HTML page, but you can have multiple classes. Here’s an example, where the <nav> has a unique id, and the <li> tags all have the same class: