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

monicala la russa
PLUS
monicala la russa
Courses Plus Student 690 Points

display:block;

why does the image dissapear from about page when I use the css display:block; ?

Bradford MacKay
Bradford MacKay
2,612 Points

I'm having the same issue and the code is the exact same code that nick uses in the video

this is the html

'''html

img src="img/nick.jpg" alt="Photo of Nick not me" class="profile-photo" '''

I took the <> off so it would display in this post

and this is the css... ''' .profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } '''

I am working in Firefox so I don't know if that might cause a problem.

Hi,

Ive just had an email form treehouse support saying there is a little bug with workspaces that started after an update, they usually have these things fixed pretty quick the reason i feel that is relevant as that i responded to a guy yesterday having trouble with firefox uploading files and today chrome has been a little buggy with it to so maybe hold out a few hours and they may have it fixed !!

Sorry its a pain but they really do normally sorh things quick

Craig

2 Answers

can you post us your code so we can see what the problem is.

Hi Monicala,

Please can you post your code as a comment for us to take a look at ..

I you are unsure of how to do so simply read the "Markdown Cheatsheet" of which a link is available below the text box when you click to add a comment or answer on the forum...

The reason for needing you code is often the issue is coming from a slight syntax error somewhere else in the code....

Thanks Craig