Hi there! I’m currently doing User story 8, and I noticed that the code test told me that my max width was wrong even though I followed the correct format(see the code snippet below for reference). What did I do wrong?
Could you post a more of the code? There may be something in the HTML too.
I did this project a few years ago, so I may be able to help. Cheers.
… Edited an hour later …
I worked through the problem from the link, and I have a few ideas it could be. First, did you remember to link the CSS stylesheet? Maybe they had you in the step prior, but if not, that was the issue I saw.
<link rel="stylesheet" href="styles.css">
I am not positive whether it is mandatory, but I always pair a width with a max-width.
width: 100%;
max-width: 150px; /*These are just example values*/
Above, you mentioned setting height: relative; I believe you meant to say height: auto;
height: auto;
Hopefully these are enough. My attempt passed, so I can send it here after if my suggestions here don’t pass. If it does, please let me know. Best of luck.