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) Getting Started with CSS Inline and Internal Styles

background-color: can I put in another color

Am I allowed to just put in my favorite color or can I only put in orange.

2 Answers

Ferdinand Pretorius
Ferdinand Pretorius
18,705 Points

Hi Breckconley,

You can literally put in any colour you like (Including everyone's favourite colour: tomato :) ).

You can do Hexadecimal colours, rgb colours and if you feel very ambitious you can even use a gradient.

Just do a google search for these topics and you will find a ton of content on the matter

Hope this helps!

Hi there, Yes, you can use any color you like. Hope this helps!