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
Darren Franks
1,006 PointsAdding a image to my main header?
Hi all i hope your all having a wonderful day! i would like to add an image in place as my main header! i am currently learning how to in my course but it looks different from how i learnt my 'How to build my first website' do i add it to my main css, my normalize.css, or my responsive.css? In my course at the moment its saying to make a main header rule in your css but which one? and if so do you still write it like this? .main-header { background-color: #ffa949; padding-top: 170px; height: 850px; background-image: url('../img/mountains.jpg'); background-size:; background-repeat: no-repeat; background-position: center; } please look at my website and let me know where and how? Thank you all for your time! darrenfranks.org
4 Answers
Caleb Kleveter
Treehouse Moderator 37,862 PointsI think you would add the link to the the image in the header tag, then style it with CSS. Is that what you want to know?
Darren Franks
1,006 PointsI think so.. so do i add this to my main css in the header tag as written?
Caleb Kleveter
Treehouse Moderator 37,862 PointsYou would add the styling to the main.css.
Darren Franks
1,006 PointsThank you i will give it a go thank you very much for your time!