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 trialDeirdre Freeman
Courses Plus Student 5,802 Pointsprofile 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?
Emma Newton
6,721 PointsCan you paste your code?
3 Answers
Deirdre Freeman
Courses Plus Student 5,802 Points<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
6,721 PointsDeirdre use the Markdown Cheatsheet to make sure the code shows up
Tracy Trathen
10,468 PointsIf 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.
Deirdre Freeman
Courses Plus Student 5,802 PointsI 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
6,445 Pointsit worked with the declaration clear:both; thanks
Tracy Trathen
10,468 PointsI would have to see your code in order to help further.
Deirdre Freeman
Courses Plus Student 5,802 PointsDeirdre Freeman
Courses Plus Student 5,802 Pointsi put <img src="img/nick.jpg" alt="photograph of Nick Pettit" class="profile-photo">