Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Header image wont appear

From a task here at treehouse, i tried to insert an new header image, but it doues not work. it is thru style.css https://gyazo.com/9ab3daa04cd4e634f3da1ea485103120 https://gyazo.com/86c5e7ee86e90fdfa2d95ea82d37c690 https://gyazo.com/3a61560f02840786d3af2d3a27c01d9a

Maksym,

With the links you included, I was only able to view your CSS. It appears as if it was done correctly, which makes me think you might have your image inside an "img" folder, and therefore your path might need to also have "../img/" before what you've entered.

It could also be something with your HTML, but since your CSS looks clean, I would suspect you have that handled correctly.

1 Answer

Steven Parker
Steven Parker
243,656 Points

Since they aren't actual web pages, they can't be used to analyze the issue.

But I noticed in your code screenshot that you're loading the background without any path, so the browser will be looking for the file "ukraine.jpg" in the same folder as where the html file is kept. Are you sure that file is present in that same folder?

If this doesn't resolve your issue, make a snapshot of your workspace and post the link to it here to enable an accurate analysis of the issue.