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 Adding Active States to the Navigation

underline contact page or shirts page on the frog Shirts 4 mike

when i add the code in the header section to underline the page that i will be on also underline shirts and contact icon on the home page should be this in that way?

here is the code


php

<ul class="nav"> <li class="shirts <?php if ($section == "shirts") { echo " on" ;} ?> "> <a href="shirts.php">Shirts</a></li> <li class="contact <?php if ($section == "contact") { echo " on" ;} ?> "> <a href="contact.php">Contact</a></li> <li class="cart"><a href="#">Shopping Cart</a></li> </ul>


Your code isn't showing up. Try to get your code posted for the menu and I'll see if I can help.