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

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

using 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

Can you post your code, especially the bit that you changed right before the image disappeared.

Thanks,

Steve.

.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