The solution doesn't pass the test - I'm stuck here

Tell us what’s happening:
my code for degrees is correct at 45deg but the test keeps telling me it has to be 45deg. So, what am I missing?

Your code so far


<style>
div {
  border-radius: 20px;
  width: 70%;
  height: 400px;
  margin: 50px auto;
  background-image: 
  repeating-linear-gradient(
    45deg,
    yellow 0px,
    yellow 40px,
    black 40px,
    black 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/83.0.4103.116 Safari/537.36.

Challenge: Use a CSS Linear Gradient to Create a Striped Element

Link to the challenge:

1 Like

hi @Gumby

i think you missed the semicolon ;

1 Like

just add this code in it’s place

still it has to be closed with right parethesis ) and semicolon ;

1 Like

woops, that is what i meant

1 Like

// running tests The angle of the

repeating-linear-gradient()

should be 45deg. // tests completed

1 Like

Ohhh Mine does. Try using another Browser, that is what happend to me.

That worked. And then I copied the new url on the next lesson and went back to my original browser and all is well.

Thank you Shadow2

No problem! Glad I could help and Happy it Worked!!

You should note this too just the way I did always be reminded about semi-colon