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 trialRonnel Jones
5,043 PointsI 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
16,509 PointsMake sure there's no space between 'url' and the brackets
background-image: url('../img/mountains.jpg');
Michael Martinez
5,681 PointsDon't feel dumb. Relative paths are confusing for a lot of people.
Ronnel Jones
5,043 PointsRonnel Jones
5,043 PointsI feel dumb. LOL. Thanks