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 Gradient on certain Web Browsers

Just a simple question regarding Gradients in css for different browsers. I've been researching all morning and thought I had figured it out but I still have yet to get my gradient to work on Google Chrome.

background: -webkit-gradient(linear, left top, left bottom, from(#0033cc), to(#ff6600));

This is the syntax in my .css file.

1 Answer

Steven Parker
Steven Parker
243,656 Points

This setting seems to work fine, but I had to make some guesses about the rest of the CSS (and the HTML).

What selector are you using with this property setting in the CSS?

body {}

https://w.trhou.se/6lq53wkrv5

this is the snapshot of my workspace