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 trialRachel Lev
14,583 Pointson my About Page , text wrapping around image even though the code is the same as Nick's. what could be the problem?
/******************* PAGE:ABOUT ********************/
.profile-photo { float: left; margin: 0 5% 80px 0; }
3 Answers
Alexander Zetterberg
999 PointsAah!! "The solution is to make sure in the document responsive.css that your braces for the media query rule fully surround the profile-photo. (the 480 px one)."
I found the answer here:
https://teamtreehouse.com/community/adjust-profile-page-floating-profile-picture-to-left-mobile-view
Furtherest down:
"Jon Edwards on Sep 13, 2014 Yay I figured it out! The solution is to make sure in the document responsive.css that your braces for the media query rule fully surround the profile-photo. (the 480 px one)."...
DAVID Soistman
3,144 Pointsis your class="" the same exact text? Also I've always did CSS like this
.profile-photo { float: left; margin: 0 5% 80px 0; }
Rachel Lev
14,583 Pointsthis is my class:
<img src="img/nick.jpg" alt="photograph" class="profile-photo">
Alexander Zetterberg
999 PointsYeah, I've got the same problem, it floats everything even under 480px.
".profile-photo { float: left; margin: 0 5% 80px 0; }"
(written under the @media screen and (min-width: 480px) { .... } command, not the other one)
Rachel Lev
14,583 PointsRachel Lev
14,583 PointsIt worked!! THANK YOU!!