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

Sander de Wijs
PLUS
Sander de Wijs
Courses Plus Student 22,267 Points

Background image with gradient overlay

For a website I have used a radial gradient as an overlay for a background image.This is the CSS I used.

background: -webkit-radial-gradient(20% 95%, circle farthest-corner, hsl(120,73%,75%), rgba(255,255,255,0) 40%), url(../img/ginkgoklein.png) 95% 10% no-repeat, url(../img/subtle_white_feathers.png) top left repeat @base-color3;

I'm not sure how to write the different webkit versions in this code.Do I have to repeat all of the code above for each webkit like Safari and Android, and also one without the webkit prefix?

Hey Sander,

Personally I would use Compass (a Sass plugin) which would generate the vendor prefixes.

E.g.

-webkit- -moz- -0- -ms-

If you are just typing out the code I would recommend this site colorzilla it has some great visual prompts and generates the code for you.

Hope this helps.

Sander de Wijs
Sander de Wijs
Courses Plus Student 22,267 Points

Thanks Neil! I never coded CSS with SASS before, just in Less. But this looks like a cool feature! I will definitely check it out.

if you run a mac, get codekit it complies the SCSS to CSS and has error handling included.

Also [codepen](codepen.io) also has the ability to learn of the fly $ = FREE

The docs for SASS & COMPASS are really great! I think if you check roadmap, there will soon be a SASS basics.