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 trialHarjit Bains
629 PointsThe gallery does not divide into two columns
Hey guys. So I followed every step in the video and when I refresh my page I do not get the same division and layout of the gallery in the mobile view. I have checked and rechecked my html and css but cannot find any faults in the coding, could anyone maybe take a look and tell me what I may be doing wrong, I have posted the links to my html and css, thanks
2 Answers
Mahmood Bawazir
Front End Web Development Techdegree Graduate 17,567 PointsHi, you have selected the wrong element on line 19 of your CSS. "Image" is not a html element, the correct element is img, changing your css to img{max-width: 100%;}
should fix it.
Harjit Bains
629 PointsThat worked perfectly thank you very much dude! I thought it was meant to be Image as that's what my folder was named but I get it now
Mahmood Bawazir
Front End Web Development Techdegree Graduate 17,567 PointsGlad i could help!