Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations The Box Model The CSS Box Model Concept

Can you use multiple border colors for each side ?

When you are using the border short hand property? Or are you limited to just one color when using the border shorthand property?

4 Answers

You can use the border-color shorthand rule.

Example: border-color: red black blue green;

Will color the border as follows. Top:red, right:black, bottom:blue, and left:green

This also works with border-style, and border-width.

ok awesome I was just making sure it wouldnt be something like

border: 1px solid blue red green yellow;

I appreciate you taking the time to answer .

Glad I could help. :-)

That's good to know because I didn't know that, either. :D

Man I see you are really flying through the courses! Congrats on being part of the community!

I sent you a request on facebook maybe we can help each other out sometime!

Thank you. I just started coding on Code Academy but the lessons were short and touched on the basics with little explanation so it wasn't that helpful. Scoured Google and found this site and I've basically fallen in love with coding. It's really fun and only wish I had found this place sooner.

Facebook request accepted, although as I'm relatively new to coding I'm not sure how much help I can be, but I'll all for trying.