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 Foundations Values and Units Numeric and Textual Data Types

Zakher Masri
Zakher Masri
4,415 Points

background-image

Should the image we use as a background be in the images folder in the directory? and should the url include the directory? like "../images/bg.jpq" ?

1 Answer

Stephen Roberts
Stephen Roberts
8,580 Points

Yes and yes, however be careful when using the .. remember these take you back out of the folder so it depends on where your HTML document is in comparison to the images folder.

If your html document is in the same folder as your images folder then omit the .. however if you have an HTML folder then use the .. like you have exampled.