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

Rachel Lev
Rachel Lev
14,583 Points

on 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

Aah!! "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)."...

Rachel Lev
Rachel Lev
14,583 Points

It worked!! THANK YOU!!

DAVID Soistman
DAVID Soistman
3,144 Points

is 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
Rachel Lev
14,583 Points

this is my class:

<img src="img/nick.jpg" alt="photograph" class="profile-photo">

Yeah, 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)