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

Borders?

I'm trying to play around with the borders in CSS, but no matter what I do (color, width, style) or where I add it (body, header, img) - it wont show up. Am I going to learn this later? Or am I missing something?

2 Answers

Hey Carolina,

could you share your code with us please? :)

An example of how to use border if you wanted to target the body:

body { border-width: 10px; border-style: solid; border-color: red; }

This will create a border around the body that is 10 pixels thick and solid red. You can also use a shorthand method that combines all three of those values into one rule.

body { border: 10px solid red; }

In that order: width(10px), style(solid), then color(red).

Hope this was helpful

Thank you! I had all of those items but not in the right order possibly?