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

Design

Backgrounds for websites

Hi there Teamtreehouse or anyone who knows about this subject! I am designing a website having to do with a military app I am also creating. I was looking around for a blue camo background. I found a really cool one, but I am not sure how I get this to become a background. Is there some special code or specific website I have to get it from? Could you let me know if you have any ideas? Thanks!

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Is it just an image? Usually, it's just easiest to use the background image property.

background-image: url(path/to/your/image/here.jpg);

and if you need it to repeat both vertical and horizontal you just say

background-repeat: repeat;

Thanks, i'll try that.