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 trialKeith Dean
690 Pointswhen selecting the imagine to set it to a block element why do you have to add a (.) before profile photo in your CSS?
.profile-photo { display: block; max-width: 300px; margin: 0 auto 30px; border-radius: 100%; }
2 Answers
Stephen Bone
12,359 PointsHi Keith
You have to use a dot/period when you're applying rules to a class.
So just as a further example to apply a rule to an id you use a #.
Hope that helps!
Keith Dean
690 PointsThat makes sense I thought this might be a stupid question but, I figured I ask thank you again.
Stephen Bone
12,359 PointsNo problem, glad I could help!