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

can someone describe what this code does

border-bottom: 5px solid #599a68;

4 Answers

Julian Gutierrez
Julian Gutierrez
19,325 Points

This is the short hand version of giving an element a bottom border with a thickness of 5px which is solid and the color #599a68.

is the 5px being applied to the top

Julian Gutierrez
Julian Gutierrez
19,325 Points

Since you are affecting the bottom-border you are adding 5px of border to the bottom of your targeted element.

No you only applying to bottom.

Below is the fiddle to check it out!

https://jsfiddle.net/8r7ka01z/

updated

https://jsfiddle.net/8r7ka01z/5/

with a top and bottom class rule.

this code border-bottom: 5px solid #599a68; will add bottom border line 5px height with color #599a68.