How to create a fixed background image on a web page?

Discussion in 'HTML & Website Design' started by faraz01, Feb 13, 2010.

  1. #1
    How to create a fixed background image on a web page using hmt
     
    faraz01, Feb 13, 2010 IP
  2. jonmaster

    jonmaster Peon

    Messages:
    181
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can use style sheet add the following code in the CSS file

    body{background: url(images/bgimage.gif) center top no-repeat}

    if you are not using CSS, then in the html body tag you can add the following style

    <body style="background: url(images/bgimage.gif) center top no-repeat">
     
    jonmaster, Feb 13, 2010 IP