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 trialMarcell van der Sandt
1,850 PointsHow do i get my Profile img center?
I wrote the code exactly like the training but my profile img stil is not in the center
.profile-photo { direction: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
1 Answer
MD AFRID UDDIN MONDAL
2,877 PointsIt's not direction. It is "display: block". So the final css rule will be... .profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
rydavim
18,814 Pointsrydavim
18,814 PointsI've changed your comment to an answer so that it may be voted on or marked as best answer.
Marcell van der Sandt
1,850 PointsMarcell van der Sandt
1,850 PointsThank you sir!!
MD AFRID UDDIN MONDAL
2,877 PointsMD AFRID UDDIN MONDAL
2,877 PointsThank you rydavim for your help and you are welcome Marcell van der Sandt