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

General Discussion

Repeating Gradients

I think i have done everything right, but for some reason nothing shows up on the page

``

<!DOCTYPE html> <html> <head> <title>CSS Gradients</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="box"></div> </body> </html>

/* ------------------------ Transparent Gradients --------------------------- */

html { height:100%;

}

body { background:-webkit-linear-gradient(hsl(195,15%,44%), rgba(255,255,255,0) 75%), url('bg.jpg'); background-size:cover;

}

.box { width:70%; height:500px; margin:35px auto;

background:-webkit-repeating-linear-gradient(rgba(58,122,187,.8),rgb(43,79,115) 50px);

}

``

any help?

2 Answers

If you're following the video, you need to remove the extra CSS code you have at the top. The only thing in the CSS file should be:

/* ------------------------
    Repeating Gradients
--------------------------- */

.box {
    width: 70%;
    height: 900px;
    margin: 35px auto;
background: -webkit-repeating-linear-gradient(rgba(58,122,187,.8), rgb(43,79,115) 50px);
}

You don't need the html and body selectors above it.

Got it thanks!