"ASP.NET MVC Basics" was retired on July 14, 2025.

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

Can this gradient be achieved in css

Hi guys!

Please see the attached screenshot. It's a step identifier for a webshop checkout progress.

I was wondering how you would create this css gradient, I have no clue to be honest. Off course, when you get to the next step, that one and all previous should be solid orange and fade to the next point.

Would love to hear from you guys, thanks so far!

You need to attach the screenshot.

haha silly me, I linked it now, thanks!

1 Answer

Steven Parker
Steven Parker
243,199 Points

The gradient itself is simple.

Something like "background: linear-gradient(90deg, rgb(230,123,0), white);" would be close. For gradient creation, you might enjoy this free online gradient generator tool.

The trick is the numbered circles and lines along the way. Perhaps this would be a job for SVG?

Thanks for your reply! I am struggling more with the lines and circles with one gradient, any clues?

Steven Parker
Steven Parker
243,199 Points

I do think SVG is your best bet, you might start with SVG Basics.