I am trying to find the easiest way to give each page (from my NavBar) on my site a “different” photo background. It seems that when the background is selected, it remains constant for all subsequent pages.
I have Home, About Us, and Contact Me links in my NavBar. My goal is to have one photo background when visitors click on my home page, another photo background when they click on About page, a third photo background when they click on my contacts page, etc.
Is there an easy way to do this?
Here is my code:
<ul> <li><a href="home.html">Home</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul>
My CSS looks like this:
body {background-image:url(greentea.jpg);}
source share