Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 :)