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

Kailash Seshadri
Kailash Seshadri
3,087 Points

[SOLVED] 2 column doesn't change to 3 column

my 2 column layout just becomes smaller in the screen but doesn't change to 3 columns. what have i typed wrong in my code? link: https://teamtreehouse.com/workspaces/12403142#

Youssef Azaaz
Youssef Azaaz
2,647 Points

This link dosen't exist

rydavim
rydavim
18,814 Points

Instead of a direct link to your workspace, you'll need to post a workspace snapshot using the camer icon in the top right. Once we can view your code, someone should be able to help you work out the issue you're seeing.

Poul Larsen
Poul Larsen
5,902 Points

you are missing the li tag in css i put my code answer in bottom

1 Answer

Poul Larsen
Poul Larsen
5,902 Points

You CSS code looks like this - you are missing the li tag

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

  #gallery {
    width: 28.3333%;
  }

Your code should look like this

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

  #gallery li {
    width: 28.3333%;
  }

  #gallery li:nth-child(4n) {
    clear: left;
  }