Use a CSS Linear Gradient to Create a Striped Element, I don't know how to make a color stop

Tell us what’s happening:
I don’t know how to make a color stop, I bet it told me but I don’t understand. Please Help Me.

Your code so far


<style>

  div{ 
    border-radius: 20px;
    width: 70%;
    height: 400px;
    margin:  50 auto;
    background: repeating-linear-gradient(
      45deg,
      yellow 0px,
      blue 40px,
      green 40px,
      red 80px
    );
  }

</style>

<div></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-a-css-linear-gradient-to-create-a-striped-element

Hi Sun_Sword,

In the example above, the first two color stops are: yellow and blue, and the second two color stops are: green and red.

Let me know if that helps. :slight_smile:

Thank you so much, that was just what I needed.

Cool! happy coding!

I got stumped there too last time. Didn’t understand the meaning of color stop the first time around.