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 Variables and Conditionals

Thiago de Bastos
Thiago de Bastos
14,556 Points

Extra Credit: Modify CSS to display new icon

Hey guys nothing I do seems to work! I am trying to change the background icon for the new menu item to an external url but nothing seems to do the trick! Have any of you managed to get this done??

3 Answers

Hi Thiago,

It would be hard to say what you might be doing wrong without seeing the code.

Have you added this link to your nav and given it an appropriate class name?

What have you tried in the css?

The project uses a css sprite for all the icons. If you're using a separate image for your new icon then you're going to need to change the background-image for that link and possibly adjusting positioning.

The relevant css starts at around line 514 in the supplied css file. Please show us how you've updated that part of the css.

Thiago de Bastos
Thiago de Bastos
14,556 Points

Thanks Jason Anello! Apologies for the late response!

Jonathan Fernandez
Jonathan Fernandez
8,325 Points

Thanks for this answer. Helped me out too with this code challenge. : )