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 trialSander de Wijs
Courses Plus Student 22,267 PointsBackground 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?
Sander de Wijs
Courses Plus Student 22,267 PointsThanks Neil! I never coded CSS with SASS before, just in Less. But this looks like a cool feature! I will definitely check it out.
Neil Little
5,555 PointsNeil Little
5,555 PointsHey 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.