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

HTML How to Make a Website Adding Pages to a Website Style New Pages

Marcell van der Sandt
Marcell van der Sandt
1,850 Points

How 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

It'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
rydavim
18,814 Points

I've changed your comment to an answer so that it may be voted on or marked as best answer.

Thank you rydavim for your help and you are welcome Marcell van der Sandt