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 CSS Basics (2014) Basic Layout Backgrounds: Color and Images

Ronnel Jones
Ronnel Jones
5,043 Points

I am trying to put the mountain at my header background and it is not working. I have the correct coding in place

CSS Code is as follows:

.main-header { background-color: #ffa949; padding-top: 170px; height: 850px; background-image: url ('../img/mountains.jpg'); }

Still shows orange background in the header.

2 Answers

Ryan M
Ryan M
16,203 Points

Make sure there's no space between 'url' and the brackets

background-image: url('../img/mountains.jpg');

Ronnel Jones
Ronnel Jones
5,043 Points

I feel dumb. LOL. Thanks

Michael Martinez
Michael Martinez
5,681 Points

Don't feel dumb. Relative paths are confusing for a lot of people.