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

Drew Tilson
Drew Tilson
1,255 Points

How to code background image how I want

Hi, this may be a really stupid question, but I am super noob at html/css and was wondering if someone could explain how to code a background like in this site http://www.kippcakes.com/site/.

I mean to green background where the content is just blocks. I cant wrap my head around how to do this

1 Answer

Ali Hamra
Ali Hamra
1,386 Points

In your CSS file , insert the following in your body selector:

body{
background-image: url("Path to your Image");
background-repeat:repeat;
}

You can check this also :

http://www.w3schools.com/css/css_background.asp

Let me know if it works :)