Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Profile photo will not float left.

I have had success with this course and solved some challenges on the way. However I am sadly stuck on this and hit a brick wall. My profile photo will not float left. I have looked over several times, main.css, about.html, contact.html, index.html and responsive.css files.


Let me know if you need additional information to above files. Thanks

Steven Parker
Steven Parker
221,297 Points

You can't share a direct URL to your workspace, it's temporary and only exists while you are using it.

:information_source: But you can use the snapshot function in the workspace and provide the link to that.

4 Answers

Steven Parker
Steven Parker
221,297 Points

The profile photo is not currently floated.

But it can easily be, by adding something like this to your main.css:

.profile-photo {
  float: left;
  margin-right: 20px;  /* you might want this also to give a little space from the text */

It's still a photo of Nick, though. :wink:

Thanks for the update and link to snapshot. https://w.trhou.se/rdqskckg3x

Steven Parker
Steven Parker
221,297 Points

I got "Bummer... The Workspace Snapshot you are looking for doesn't exist."
The newer one works, you could delete this one.

Added the additional code as suggested and guess what? Yes! it worked. I am trying to understand why we had to add additional code? Also changed the "About" photo.


Thanks again for your help. Good to know that help is out there.