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 app conditional problem

Hey!

In the "Build a simple php application" -> "Creating the menu and footer", when I add the active states to the navigation, they work when accessing the respective pages, but the front page header "breaks"

"Broken Header"

Does anybody know why that white space appears now?

Thanks!

4 Answers

it would be very hard to guess without looking at your code ... may be look at the css ??

Well it's the same code as in the projects. I never changed anything - just followed the instructions. This is really weird.

Does this happen when you hover over it, or just when the page loads? Also from the pic Im not sure which browser you're using have you tried a different browser to see if the problem persist?

This happen to me and I added the $section variable to the index.php and it fixed it. I added the followin: $section = " ";