Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Jonathan Edwards
9,097 PointsWhy did he use the box-shadow property to make a border?
Is there an advantage to creating this with the box-shadow property instead of the border property?
2 Answers

Daniel Newman
5,995 PointsMost likely it was done because using a box-shadow creates a more "gentle" border than using a 2px solid line or something of that nature. Probably just more asthetically pleasing.

Jonathan Edwards
9,097 PointsOops, my bad! It's in the "CSS Transitions and Transformations" video at about 5:30.
https://teamtreehouse.com/library/control-a-transitions-start-time-with-transitiondelay
Max Senden
23,153 PointsMax Senden
23,153 PointsHi Jonathan,
Could you provide us with a link to the video? There could be a myriad of reasons why one would decide to use box-shadows over borders and vice versa.