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 Basics (2014) Enhancing the Design With CSS Gradients

Montalvo Miguelo
Montalvo Miguelo
24,789 Points

How to do gradients in text ?

Is that possible for example in the big main title of the site?

2 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hey Montalvo,

Yes this is possible with CSS :D However, be warned that it is only viable for webkit browsers (so it won't work in Internet Explorer).

I could explain how to do it, but here is a really quick and great guide that will show you better than I can.

CSS Tricks - Gradient Text

Hope this helps

Montalvo Miguelo
Montalvo Miguelo
24,789 Points

Woot that's cool but only for webkit... Is there any other way to get this working on almost all modern browsers?

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

Not that I know of.

I have only ever used Text Gradients once, and for that I used the method I linked to you.

Sorry :(