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

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. :)