Help with background image

Discussion in 'Graphics & Multimedia' started by webspider20, Oct 27, 2009.

  1. #1
    I am wanting to change my background image for my website but I don't know how. How do I add an image to my background?
     
    webspider20, Oct 27, 2009 IP
  2. softwaremisle

    softwaremisle Guest

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do you want to do? Put an image right in the middle? make it repeat? or leave it in place when you scroll up or down?

    You can do it easily using CSS.

    body
    {
    background-image: url(whatever/image.jpg);
    background-repeat: whatever;
    background-position: whatever;
    }
     
    softwaremisle, Oct 28, 2009 IP
  3. webspider20

    webspider20 Member

    Messages:
    490
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I just want the image to stay in one spot on every page. Where do I put the picture that I am wanting to put as my background or do I just put the url of where the image is online?
     
    webspider20, Oct 28, 2009 IP
  4. parthi2parthi

    parthi2parthi Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is it in frames????
     
    parthi2parthi, Nov 5, 2009 IP
  5. DesignBytes

    DesignBytes Notable Member

    Messages:
    1,237
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    200
    #5
    if you want it to stay on everypage and one spot.
    define a css file. with a back class.

    then use that class on every html page.
    structure softwaremisle has given above.

    but you will need to first link the css file in all the html files.
     
    DesignBytes, Nov 7, 2009 IP
  6. jimairon

    jimairon Peon

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    This is all you need: http:// * w3schools.com/css/css_background.asp
    (I can't post live links, copy/paste and remove the *)
     
    jimairon, Nov 11, 2009 IP