Background image without body tag

Discussion in 'HTML & Website Design' started by Gasen, Nov 18, 2009.

  1. #1
    Hi Gang

    I am placing a listing / ad on a site that uses fckeditor. I want to use a background image. I cant use <body background="http://www.my domain.com/image"> because I am not allowed to use the body tag. Is there any way to use a background image without the body tag?

    Thanks in advance
     
    Gasen, Nov 18, 2009 IP
  2. Masteroa

    Masteroa Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    CSS.

    Either

    body {
    background: url(images/image.gif);
    background-repeat: no-repeat/repeat-x/repeat-y/nothing;
    width: Xpx;
    height: Xpx;
    }

    or with div tags.
     
    Masteroa, Nov 18, 2009 IP
  3. Wrams

    Wrams Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes CSS is the only other way really.
     
    Wrams, Nov 18, 2009 IP
  4. Gasen

    Gasen Member

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Hi Masteroa

    I used the div tags and it works like a dream. Thanks a million.
     
    Gasen, Nov 18, 2009 IP