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 CSS Foundations CSS Gradients Repeating Gradients

Why does this not make 2 gradients over one another? I get nothing...?

This is the code... Sorry is it's a huge headache.

background: -webkit-repeating-radial-gradient(100% 100%, circle, rgba(108,144,188,.8) rgb(75,113,160) 100px, 0 0, circle, rgba(108,144,188,.8), rgb(75,113,160) 100px);

2 Answers

Ron McCranie
Ron McCranie
7,837 Points

a repeating radial gradient just starts a pattern over after the last specified color. Look at the documentation on the W3schools site and it should give you a good explanation of how & what you can do with them.

Another good resource is css-tricks.com

I'm sure exactly what you're trying to accomplish but it looks like you're syntax has more stuff to it than it needs.

Thanks Ron, sorry I wasn't clear. I'm just trying to make it so you can see each gradient stacked on top of each other because they are both partially transparent.