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 trialCoskun Olcucu
4,562 Pointsindex.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
Jason Anello
Courses Plus Student 94,610 PointsHi 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.
Ary de Oliveira
28,298 Pointsno work
Jason Anello
Courses Plus Student 94,610 PointsCan you give any details?
Sebastian Karg
28,705 PointsHi,
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?