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

Sara Parker
Sara Parker
2,238 Points

Need some help with my code

https://w.trhou.se/m858yb1xhp

I don't understand why I don't get one column instead of two when I i crop my page at my Mac down to mobile-size. Can someone please help me out?

1 Answer

inside the responsive.css making the gallery take up the full screen is one way to do this.

will need to remove float from the main.css then making all the <img> inside of the <ul> #gallery a bit bigger to fill the screen.

  @media screen and (max-width: 420px) {

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

  #gallery li {
  float:none;
  }


  #gallery li a p {
  min-height: 35px;
  }

  #gallery img {
    min-width:200%;
    display:inline-block;

  }
}