I always get this:
- Your
img
element should have a display
of block
.
- Failed:Your
#image
should have a max-width
of 100%
.
Your #image
should be centered within its parent.
I get so stuck there that I followed a tut in yt to finally be done with it but still it displays that. pls help 
https://codepen.io/capu-ciao/pen/qBygOWW
Welcome to our community!
I have just run the test and your code passed. No mistakes here.
1 Like
yes but fcc still displays these: * Your img
element should have a display
of block
.
*Your #image
should have a max-width
of 100%
.
Your #image
should be centered within its parent.
Copy all your code and paste it somewhere else. Restart step. Paste back code and try again. If it doesn’t pass follow the note:
“Note: Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests. If you face issues, we recommend disabling extensions that modify the content or layout of pages, while taking the course.”
1 Like
I don’t have any extensions in my browser now, copy and pasted also, but still fails.
You have to link the styles.css
to the html using the link element.
Example of the link
element:
<link rel="stylesheet" href="filename.css">
1 Like
yes, it’s included when I’m pasting on fcc
Can you share the code you pasted on fcc
1 Like
the css name in my link was tributepage.css (thats the name in vscode) , changed it to style.css then it finally worked. thank you so much <3
1 Like