Hey, guys I was wondering how I could add a background image only to one page on a website and have the rest of the website a different color or image?
Well, that’s possible.
There are many ways to do, here are a few.
- Use different CSS files for those pages.
- If you choose to use a single CSS file for all pages then, you could add any block element with the same size as the body and set it’s background-image to something and the other HTML file should not contain that block element and apply the different background to it.
1 Like
Which language are you using?
If you are using CSS this is the code:
#example1 {
background: url(img_flwr.gif) right bottom no-repeat, url(paper.gif) left top repeat;
}