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) Understanding Values and Units Color Values

Kirby Abogaa
Kirby Abogaa
3,058 Points

"rgba" displays different color with and without whitespace.

color: rgba(255, 255, 255, .5); /without space after rgba/

displays a different color than

color: rgba (255, 255, 255, .5); /with space after rgba/

im currently using Chrome...any idea why?

1 Answer

Sean T. Unwin
Sean T. Unwin
28,690 Points

There should not be a space between 'rgba' and the left bracket. This breaks the internetz.

Seriously though, rgba() is essentially a function, therefore, there should not be a space between the function name and the parenthesis (the brackets).