Include Function & Changing Link Colors
Posted: Wed Mar 14, 2007 2:15 pm
Hey all...this is my first post here, I'm excited to get involved.
Quick question for yah:
I am designing a basic PHP page with a footer at the bottom that contains navigational links to the rest of the website. To generate this footer I am using a basic Include function that references "footer.php" and inserts it into "index.php". Now, the background of "index.php" is white, so I want all of the links on it to be blue. However, "footer.php" has a black background so I want all of the links to be white. I use CSS in both pages to define the colors of the links.
Now, when I load the "index.php" page, the links on both "index.php" and "footer.php" are all white. The browser is taking the info i specify in "footer.php" and applying it to the whole loaded page.
Any help on this issue would be much appreciated! Thanks in advance.
Quick question for yah:
I am designing a basic PHP page with a footer at the bottom that contains navigational links to the rest of the website. To generate this footer I am using a basic Include function that references "footer.php" and inserts it into "index.php". Now, the background of "index.php" is white, so I want all of the links on it to be blue. However, "footer.php" has a black background so I want all of the links to be white. I use CSS in both pages to define the colors of the links.
Now, when I load the "index.php" page, the links on both "index.php" and "footer.php" are all white. The browser is taking the info i specify in "footer.php" and applying it to the whole loaded page.
Any help on this issue would be much appreciated! Thanks in advance.