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 Build a Three Column Layout

Amaan Vaddadi
seal-mask
.a{fill-rule:evenodd;}techdegree
Amaan Vaddadi
Front End Web Development Techdegree Student 3,750 Points

Three column width doesn't execute. All my images are moving into one column on the left. what am i doing wrong?

I have done exactly as the video shows. checked and rechecked my code but all my images are in one column to the left of the screen and is not fluid.

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

/***************************************** TWO COLOUMN 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;}

}

Also I am not able the shrink the web browser window after a limit. can someone advise??

Hi Amaan, Are you able to take a snapshot of your Workspace? It'd be easier to help out if we could see all of your code in case there is something overriding.

-Dan

Hey Amaan,

In your main.css file, under the PAGE: PORTFOLIO section. You have:

  float: left;
  width: 45%;
  margin: 2.5%;
  background-color: #f5f5f5;
  color: #bdc3c7;
} ```

Meaning, you are not targeting the list items in your main.css. Change this to 
```#gallery li{ 
  float: left;
  width: 45%;
  margin: 2.5%;
  background-color: #f5f5f5;
  color: #bdc3c7;
} ```
Hope that worked.

-Dan

1 Answer