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 trialSteve Jackman
Courses Plus Student 1,229 Pointsusing css styling on a page and when i use the display: block; the image disappears? same code as video
not sure why the display: block; styling on the image makes it disappear
1 Answer
Steve Hunter
57,712 PointsCan you post your code, especially the bit that you changed right before the image disappeared.
Thanks,
Steve.
Steve Jackman
Courses Plus Student 1,229 PointsSteve Jackman
Courses Plus Student 1,229 Points.profile { max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
this works, but below doesn't so the image isn't centered.
.profile { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
this is the image code in the html page.. just finishing the video tutorial before i swap out all the images.
thanks for the help