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 Basic PHP Website (2018) Building a Media Library in PHP Including the Header

index.php page doesn't show the content proper way

I looks like css file doesn't work on the index.php.I haven't made any change the downloaded code.

unordered list items doesn't display the elements inline block it displays as a block item and large images.

3 Answers

Hi Coskun,

If your index page has

<ul class="catalog">

then change "catalog" to "items". The css file is expecting that class to be "items".

Also, later when you create the catalog.php page there will be a ul on that page too. Make sure you give it a class of "items" as well.

no work

Can you give any details?

Sebastian Karg
Sebastian Karg
28,705 Points

Hi,

I have the same issue. Set up my project localy on a MAMP Server, using Brackets as Editor and Chrome Browser for preview. Never had problems with that setup so far, but after renaming the index.html to index.php and refreshing the page the style.css doesn't load. However if I open style.css and try to change something it loads perfectly until I refresh index.php.

Does anyone have an idea how to fix this issue?