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 trialShane Phan
1,436 PointsNo color specified in border in teacher's notes- what color used by default?
I was just curious what would happen if you did not specify a color value in the "border" property in CSS. I tried it in the .t-border property from my Workspace following along with this video- the border became darker gray. Where did CSS pull that gray color from? Is there a default color or does it pull from other information in your document?
1 Answer
Matthew Potter
8,718 PointsIt is taking it from the color property of the body just like your h2 tag is. It also doesn't have a specific color property. Play around with it by leaving out the color in your class secondary.content and changing the color in your body.
Shane Phan
1,436 PointsShane Phan
1,436 PointsAhh I see now, yeah it took the color from the body. Thanks!