Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Build a Simple PHP Application Listing Inventory Items Even More Excitement With Arrays

Do I need to download a different CSS file because my shirts aren't displaying as a grid?

The lesson shows the products/shirts displaying in rows of four, but my shirts are displaying separately, each one below the one before.

3 Answers

Paul Brophy
Paul Brophy
10,673 Points

Okay I see. Is there any chance that you could paste your written code into a reply?

In response to your original question, you don't need to add any additional CSS. The styles for the products are from line 614 to 654. :)

Did you add the 'products' class to the ul?

<ul class="products">...

THANKS! I missed adding one of the classes to the div. I had the class you suggested, but your question prompted me to look through the rest of my code for missing classes.

Thanks for taking time to help me with this :)

Paul Brophy
Paul Brophy
10,673 Points

Hi Janis,

Are you able to tell me which lesson this particular question refers to? I don't think I've actually watched this one myself.

The course is "Build a Simple PHP Application. The section is "Listing Inventory Items" and the problem started at lesson "Displaying All Products".

Paul Brophy
Paul Brophy
10,673 Points

Awesome! Glad I could help. :)