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

So, I can't seem to get my profile photo in the about page to float left. really not sure what I am doing wrong.

@media screen and (min-width: 480px) {

   /***************************************
  TWO COLUMN LAYOUT
  ****************************************/

  #primary {
    width: 50%;
    float: left;
  }

  #secondary {
    width: 40%;
    float: right;
  }



  /***************************************
  PAGE: PORTFOLIO
  ****************************************/

  #gallery li {
    width: 28.3333%;
  }

  #gallery li:nth-child(3n + 1) {
    clear: left;
  }

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

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







}  
@media screen and (min-width: 660px) {

}

Hey Sean,

Can you wrap your code with the 3 tick marks (same button as ~) as shown in the Markdown Cheatsheet? It will help us better see what's going on with the code. Thanks! :)

If you add the word "css" right after the tick marks, it will enable highlighting as well, but you don't necessarily have to :P

Your CSS is great. Perhaps make sure that inside the profile photo element it correctly refers to its class as "profile-photo". Misspellings are the bane of a developer's existence! haha

3 Answers

There we go, thanks for that, I was wondering how people were posting their code that way :>

There we go, thanks for that, I was wondering how people were posting their code that way :>

Ahh, I figured it out I had not added the html line

<link rel="stylesheet" href="css/responsive.css">

to the about.html file. Thank you Marcus for your guidance on how to post and on this specific issue. I had definitely already made sure that I had correctly referenced the profile photo element. That was what was causing me so much grief.

That'll do it! haha Good luck, Sean!