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

Oliver Sewell
Oliver Sewell
16,425 Points

CSS Color .. rgba() or hsla() which do you use?

Just wondering which you guys use ?

2 Answers

Oliver Sewell
Oliver Sewell
16,425 Points

thankyou seems like hsla is the way to go !

Personally, I prefer hex because that is I become accustomed to. However, HSLa seems the way to go. You should check this out as well: http://joshnh.com/weblog/hsla-are-you-using-it-here-is-why-i-think-you-should-be/

Oliver Sewell
Oliver Sewell
16,425 Points

you cant change opacity on hex though ? unless rgba?

Yeah I just use a combination of Hex and RBGa in my work. I use them when suitable but mostly I use Hex. Use whatever you're comfortable using.