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

CSS How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Marshall Paton
Marshall Paton
999 Points

Profile picture floats but always stays in the centre of the window

my picture always stays in the centre of the screen, the text just floats around it.

main.css

/******************************** PAGE: ABOUT *********************************/

.profile-photo { border-radius: 100%; }

profpic { display: block; max-width: 150px; margin: 0 auto 30px;}

I had to break it up into a <class> and <div> in an earlier lesson so that it would centre. Now the text doesn't push it to the side at all.

responsive.css

/******************************** PAGE: ABOUT *********************************/

.profile-photo { float: left; margin: 0 5% 80px 0;}

Marshall Paton
Marshall Paton
999 Points

on the bold one it should be #profpic it just didn't show up

Christian Lawrence
Christian Lawrence
3,941 Points

Hi Marshall,

Could you post your HTML and CSS in full using CodePen or the Markdown Cheat-sheet on Treehouse.