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

Molly Dopheide
Molly Dopheide
11,083 Points

Radial Gradient problem

I am hoping someone can see what I am missing. I can't seem to get a radial gradient to work in the background.

http://cdpn.io/kAejK

Thanks, Molly

3 Answers

Molly Dopheide
Molly Dopheide
11,083 Points

I ended up using

body { background: radial-gradient(circle at top, #BCB19B 0%, #A19274 50%); background-color: #A19274; max-width: 1280px; margin: auto; }

Thanks to solipsistaCP on codepen. :)

Magnus Hovland
Magnus Hovland
5,657 Points

Looks like you're just missing a comma :)

background: radial-gradient(#A19274, #DBD5CA);

Edit: spelling & format

Molly Dopheide
Molly Dopheide
11,083 Points

Thanks Magnus, After I added the comma, it didn't change anything. Did you see a result in codepen when you added the comma? I am beginning to wonder if it is my browser. I used -webkit since I am on Chrome but even in codepen I am not seeing a gradient.