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 Basics (2014) Enhancing the Design With CSS Gradients

Jason Marlin
Jason Marlin
1,166 Points

Why is the exam rejecting this script as incorrect?

Why is my CSS being rejected here? It keeps throwing up weird errors that seem to ignore the script ive written.

I am getting the errors on step 4 where it requests that I : β€œset the color stops position to 90%. Then add the value that sets the gradient from top to bottom. ”

.main-header {background-image: linear-gradient(to bottom, steelblue, darkslateblue 90%);}

1 Answer

Kelvin Parker
Kelvin Parker
3,335 Points

I'm sure you've solved this by now, but looking at the challenge is it not as simple as reading the question wrong? I just completed it with the challenge from bottom to top, so it was merely changing the "to bottom", "to top".

Jason Marlin
Jason Marlin
1,166 Points

Thanks dude this totally worked! I had it backwards i guessπŸ˜‹ How odd