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 trialMichael McKenna
3,451 PointsI don't understand how the paragraph automatically falls underneath the profile picture.
If the screen size is less than 660px, this code is used: .profile-photo { float: left; margin: 0 5% 80px 0; }
how does this make the profile picture appear on top of the text below it?
1 Answer
Marissa Richardson
47,542 PointsI haven't seen your code, but I think the items you are talking about are block-level elements. Are both items contained in div tags? Div tags are block-level dividers while span tags display inline. Block-level elements stack on top of one another taking up the entire space of the line. I believe that most elements display block by default unless customized by you. I hope this helps.
Michael McKenna
3,451 PointsMichael McKenna
3,451 PointsOH gotcha thanks. Yeah there was code for float: left for when the screen was above 660px, then the code used what you just said for when it is smaller.
Marissa Richardson
47,542 PointsMarissa Richardson
47,542 PointsYour welcome. I'm glad the info helped you.