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

trying to alter border size (it seems a little stretched)

https://w.trhou.se/i7yuxwl65v

on .card-title my border seems long (i know thats ok with video lesson) but i was wondering if i wanted to make it smaller in length what could i do.

1 Answer

Steven Parker
Steven Parker
231,261 Points

You could give your title element a specific width to make it smaller. If you want to have it centered over the column you could also add automatic margins:

.card-title {
  width: 200px;
  margin: 10px auto;
}