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


Prakhar Patwa
Prakhar Patwa
11,260 Points

how to give the different background-images for differnt pages in the css files?

i am trying to make 1 web-site of 4-5 pages(Restaurant site) on every page i want to give differnt body background images but its not possible in 1 css file i created another css file,but when i link-up to the main page it showing page not found

1 Answer

Jasper Leenarts
Jasper Leenarts
13,830 Points

You could just use one css file and give a different class or id selector to the body element for each page. And select the class or id in your css to link the background for each seperate page.