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 CSS Foundations CSS Gradients Linear Gradients

Becky Christofferson
Becky Christofferson
15,047 Points

The link attached has the different syntax for each browser: http://www.w3schools.com/css/css3_gradients.asp

Ran into issues with gradients in IE. The link has the different syntax for each browser.

1 Answer

There is different syntax for some browsers as they have not implemented the final completed spec of that feature. W3c will release a preview of what standards there will be and the browsers will use a prefix to implement the the feature until the final specifications are released.

IE 10 and 11 use the standard spec so you do not need a prefix but if you are using an older version of IE you will have to find another way to get a gradient as they did not implement css gradients.