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!

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

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.