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

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!!