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

How to set the border height

Can you please let me know how can I adjust the border height

3 Answers

Svetlana,

The border itself is actually based on whatever element it's being assigned to... for example, if you have a div, the border will be the same height as your div.

See: http://codepen.io/anon/pen/XJJOrZ

Thanks! That Helped :smile:

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Svetlana Kontsevitch,

To set a border's height, you can use the border-width CSS property. I discuss adjusting border thickness at the 7:05 mark of this video.

Hope this helps! :)

Thanks Guil! But I am looking for the border height. I do not want the border to b too long.