I have tried everything but for some reason my code does not want to work. I have even checked other posts to see if anyone had a similar issue but even their solutions didn’t help me. If anyone know why its not working I would appreciate the help. Below is my code.
What do you mean by “does not want to work”?
Are the tests not passing?
I ran your code and the only problems are related to the “title” tests, because you haven’t added them
but if you are pasting your code directly from CodePen you will have problems with the CSS code, because you don’t have some of the basic tags on codepen, (html, head, etc)
Hi there, @Merkaba. Welcome to fcc forum.
Since you’re building your project on Codepen, I think you should be aware of how Codepen works.
First: You can write, edit, update only the code that goes inside <body></body>
tag inside the HTML editor.
So basically you’re missing the head part of HTML.
How to add or insert <head></head>
tag and other tags in Codepen then?
If you look at the top right corner of the HTML editor you should see a setting symbol and a down arrow symbol. Click on the setting and it will take you to “Pen settings” and there you should see a place to add code that go inside
<head></head>
tag. It is named “Stuff for <head>
” add your codes that go inside head tag.
Why your code is not working!
Because you are only coping the
body
section from codepen and yourhead
section is missing from your code.
I hope my reply will help you, let me know thanks.
I had to remove the head section for code pen but the errors I’m getting are:
16. Your img
element should have a display
of block
.
17. Your #image
should have a max-width
of 100%
.
19. Your #image
should be centered within its parent.
Hello and welcome to the forum @Merkaba !
Great job! Nice Tribute Page.
I think the final instruction may have been missed which could be causing the problem.
Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS
Wishing you good progress on your coding journey.
I did that originally i just removed it for codepen but that doesn’t help either
Sorry. Did you add the html tags opening before all code, and closing after the body closing tag? Those are the only things I could see.
Otherwise, I am not sure. But, the more experienced voices will find a solution, I am sure.
Wishing you good progress on your coding journey.
I did but it didnt help either
Please copy all your code here in the full format including the html head element etc. we cannot help with a syntax issue if we don’t have the full code.
Okay I have updated the code in its entirety
Okay I just saw what the issue was. The href I made was wrong, instead of href I put hef. Thank you all for the contributions.