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

Why 255

Why is the max 255 not something simple like 100?

1 Answer

This is the number that can fit neatly into one byte. There's a good Treehouse course on bits and bytes etc. https://teamtreehouse.com/library/computer-basics and there's a Quora answer on the topic here: https://www.quora.com/How-many-numbers-can-be-represented-in-1-byte.

Oh Interesting, never thought about it being to do with bytes

It shows up all kinds of places. I have a digital volume pedal for my music work and it has values from 0 to 255.