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

profile photo not showing on webpage

I put html= <img src="img/nick.jpg" alt="photograph of Nick Pettit" class="profile- photo">

but the picture is not showing up?

i put <img src="img/nick.jpg" alt="photograph of Nick Pettit" class="profile-photo">

Emma Newton
Emma Newton
6,721 Points

Can you paste your code?

3 Answers

<img src="img/nick.jpg" alt="Photograph of Nick Pettit" class="profile-photo">

This is the code Emma, i copied and pasted it,

Emma Newton
Emma Newton
6,721 Points

Deirdre use the Markdown Cheatsheet to make sure the code shows up

If your code is the same as what's on the video, it is just hiding the photo up under the header stuff because the header stuff is floated. If you add a "clear: both;" declaration in the .profile-photo class rule as the first declaration (above the display: block, max width, margin, and border radius stuff) it will look like the video and show up below the header stuff but above the "about" and the paragraphs.

I actually have .profile-class rule declaration done with the clear: both and the photo still does not show up...Also the little phone and email icons do not show up either.

alejandro avina
alejandro avina
6,445 Points

it worked with the declaration clear:both; thanks

I would have to see your code in order to help further.