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
Tyler Zika
14,402 PointsHave my content one background color, and left and right sides of the page a different color.
Hello,
I'm unsure of the terminology of what I am asking for. Here is a link of a similar website I'm trying to mimic
http://crowleyparty.blogspot.com/
If you notice the main content of the blog, it has a white background that never ends going up and down. Then the sides of the main content are a light pink. How does one achieve this?
1 Answer
Kevin Korte
28,149 PointsSomething like this? Basically it's a body background color, and a content background color.
Tyler Zika
14,402 PointsTyler Zika
14,402 PointsKevin, that is it! Thank you! I hope I can get it to work. I copied the code from you link and it is not working on my blog for some reason..
Update: Got it to work!
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsGlad to hear it! I threw that together quickly and simply just to show proof of concept and not bloat on the code. Now it's up to you to position, size, and style it exactly as you wish.
I used background colors such as 'lightpink' but you can replace that with a hex value color code to have a much larger range of color options.
Good luck!