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

Ryan Fagan
Ryan Fagan
1,531 Points

Took the code for the Lake Tahoe page we worked on in CSS Basics can't get header image to change

Every other image changed successfully, but the header image won't change, even though I KNOW I have everything set correctly.

Hi Ryan, to help you we need to see your code.

Paul Walker
Paul Walker
28,904 Points

As you know Ryan, there are several ways to load your images.

using the background-image: url(../images/image.jpg) no-repeat; using inline with your html <img src="images/image.jpg alt="my image"> using the background-size: cover;

I would try to double check the path to your files. You know that if you are in your CSS, you must use ../. If the CSS is not in a folder your path is style.css. I would also double check where in your HTML you're trying to place i.e div, class etc. your image. Hope this helps and good luck.

1 Answer

Make sure you src and alt is correct . I also dowload file .jpg . Make sure u are href correct. It's small mistake attach you code it is further problem. I hope that helps