Css not working on tribute page why?

my css is not working i maneged to style my picture for my tribute page using css but on the html side, i’ve put it all in the right syntex

css
img { display: block;
max-width:100%
hight:auto;
}? why isn’t it working on the css side but it work when i use on the html side

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14588.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.59 Safari/537.36

Challenge: Build a Tribute Page

Link to the challenge:

The HTML and CSS are two separate files. In order for your HTML to use a separate CSS file, your HTML would need to link the CSS file with a <link> tag within <head>.

1 Like

You can review how to add a link to your CSS file in this lesson:

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