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 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.