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

How are the color transitions shifted apart in repeating gradients?

Hi folks, just a wee question on the 'Repeating Gradients' quiz. There are 2 options which read correct to me but only one of them is right:

I think it may just be a mistake?

Question:

How are the color transitions shifted apart in repeating gradients?

Answers:

The difference between the first and last stop positions. The difference between the last and first stop positions.

Surely these are the same right??:S

Cheers Dan:D

1 Answer

Kevin Korte
Kevin Korte
28,148 Points

No they are different.

Subtracting the first stop position and the last stop position vs. the last stop position minus the first stop position will have you very different results.

Guil talks specifically about this starting at the 1:50 mark in the Repeating Gradients video.