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.

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

Profile image only showing half of circle...

After adding the media query to allow my profile photo to float left, when viewed in desktop mode the image only shows half a circle. And then when the browser is shrunken down the image does not float left.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

In the upper right hand corner of your workspace you'll find a camera icon. Click that to make a snapshot of your workspace and link it here. This way we can examine all parts of your code and file and directory structure. This makes it much easier to help you :)

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Ah ha! I found another solution to the half circle thing and it was in your crop-image profile-image css. Here's a look at what I did:

.crop-image{
    height:200px;
    width:200px;
    position:relative;    
    border-radius:100%;
    overflow:hidden;
    margin: 0 auto;
}

.profile-photo{
    position:absolute;
    margin: 0 auto;
    height:auto; width:100%;
}

Many thanks!

All good, turned out my profile image was in a div, due to a size issue i had earlier. I just had to call it what the class was called in the div and its worked.