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 Creating the Menu and Footer Including the Header

When I create a new contact.php page like the instructor of the video the css is not applied to the page.

When I created the "contact.php" like the instructor. On his website the <h1>Contact</h1> is styled with css and it centers the text and adds some spacing out. Where as, on my "contact.php" the text is on the left hand side, it is smaller and does not have spacing out. I think that the css styles are not applied to my contact page however, the <?php include('inc/header.php'); ?> which includes the styles does not work for some reason.

2 Answers

Have you added the css to your contact.php file? If so, are you pointing to the right directory and file?

Works now. Thank you!