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 trialyoobin hong
6,645 PointsMy 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?
1 Answer
yoobin hong
6,645 PointsThat 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!!
Angela Visnesky
20,927 PointsGlad you found the error!
Angela Visnesky
20,927 PointsAngela Visnesky
20,927 PointsHi Yoobin! Your code says that you have the float set to float: right. Have you tried changing that to float: left?