Adding an icon to an existing image sprite
Add another page to the menu for something like "Company Information." You'll need to complete the following steps:
1.Create a new PHP file for the page, making sure to set the $section variable. 2.Modify header.php to display the new menu item, making sure that it is underlined when someone is on the new page. 3.Create an icon for the menu item. 4.Modify the CSS file to display that new icon, as well as to make room for the extra item in the menu.
Hi all, Regarding the above challenge,I have been able to accomplish tasks 1-3 but I am unable to do task 4 of adding the icon to the nav bar.Any assistance will be appreciated.
Jonathan GrieveTreehouse Moderator 83,234 Points
Great job on finishing the first few tasks. :)
If you're modifying the CSS to display the image icon it sounds like you want to use the
background-image property. Look for the location of the image in your workspace or on your file system and pass in the relative path and file name for your image!