Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.