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 trialKaysha George
932 PointsOn my about page-when I shrink the browser to mobile size, my profile picture and paragraphs do not align to one column.
/***************************************
PAGE: ABOUT
****************************************/
.profile-photo {
float: left;
margin: 0 5% 80px 0;
}
This is what I have. it is located in the same position as he has done in the video. just above my media query for 660px but below all my css for 480px.
Can't seem to find a fix.
2 Answers
Kaysha George
932 PointsJust needed to move the closing curly brace from my first media query to after this bit of code. Example:
@media screen and (480px) {
.profile-photo { float: left; margin: 0 5% 80px 0; }
} <!-- <----------- That is the curly brace I was missing when this code wasn't working for me. -->
I had it sitting before my .profile-photo, so that it was excluded from my media query.... Doh
huckleberry
14,636 Pointsedited answer to include code formatting.
Glad you got it figured out
Cheers,
Huck -
Russell Knight
4,020 PointsRussell Knight
4,020 PointsThanks that was driving me insane! Funnily enough I think by adding in all the extra comment headings it made it a bit more confusing :S
alexnahimana
7,429 Pointsalexnahimana
7,429 PointsI had the same problem. Thank you.