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

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

Jeriah Bowers
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jeriah Bowers
Front End Web Development Techdegree Graduate 20,590 Points

Profile photo and photos on about page won't float.

My profile photo on my about about page won't float/clear left when the site is sized to that of a desktop, and neither will my photos on my portfolio page.. I don't know what's wrong and I've spent to much time on this already. Thank-you.

Looks like your workspace doesn't work.

2 Answers

Your responsive.css should look like this:

@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(4n) {
    clear: left;
  }
  /* above with the nth-child is stating that any styling that's here be applied to every 4th element in gallery list */




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

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

}



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


  /**********************
  HEADER
  ***********************/

  nav {
    background:none;
    float: right;
    font-size: 1.125em;
    margin-right: 5%;
    text-align: right;
    width: 45%;
  }

  #logo {
    float: left;
    margin-left: 5%;
    text-align: left;
    width: 45%;
  }

  h1{
    font-size:2.5em;
  }

  h2{
    font-size:0.825em;
    margin-bottom: 20px;
  }

  header {
    border-bottom: 5px solid #558ba0;
    margin-bottom: 60px;
  }

``
Jeriah Bowers
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jeriah Bowers
Front End Web Development Techdegree Graduate 20,590 Points

https://teamtreehouse.com/workspaces/23768392# Maybe it's in my html? I've looked over everything over and over and cant't find anything and I can't move on in my tech degree till I do. Maybe it's even an error in workspaces?? Any help is appreciated. Thanks.

Please fix your workspace.