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

yoobin hong
yoobin hong
6,645 Points

My image is not floating to the left

When i typed in my code for the About page to have the photo float to the left, nothing is happening.

I wrote the code

.profile-photo { float: right; margin: 0 5% 80px 0; }

but nothing is happening for some reason. I made sure I didn't have typo for the class name and it is the same.. What could be causing this problem?

Angela Visnesky
Angela Visnesky
20,927 Points

Hi Yoobin! Your code says that you have the float set to float: right. Have you tried changing that to float: left?

1 Answer

yoobin hong
yoobin hong
6,645 Points

That was actually a typo (I was trying to float it to the right to see if it made any difference). I actually found out as I was re-reading my code to see what was causing this issue and found out that I didn't have my responsive.css file linked correctly on my about.html ahahaha. Thank you for reaching out so quickly!!