Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2019
    Thanked 0 Times in 0 Posts

    Setting background image on website page

    Good morning

    I have in issue with my website.

    I am trying to set a background image that appears on 1 page only. I have tried most code entries but cannot achieve the desired effect.

    I am trying to get my image to appear in the background of one page but when I type the code it in appears in the background of every page on the website.

    Can anybody help me please as I have ran out of ideas.

    Thank you in advance.

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,360 Times in 1,329 Posts
    Well, we all aren’t psychic, you’ll have to show us your code to be able to help you.

    As a stab in the dark I’d say assign a class or ID to the body element on the specific page where you want the different background to appear and then use that as selector in your styleshee to apply the background.

  3. #3
    New Coder
    Join Date
    Mar 2019
    Thanked 0 Times in 0 Posts
    Hi Lugzyboy82,

    I will tell you the simplest way with the help you can set a background image on a single page.

    <!DOCTYPE html>

    <body background="image.png" or “image.jpg”>

    <h1>These tag depend on you i am only show you </h1>
    <p>The background attribute is not supported HTML5. Use CSS instead.</p>

    I am happy if this method resolves your problem.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts