Need help to position background image!

Discussion in 'HTML & Website Design' started by adwaitk007, Jan 4, 2011.

  1. #1
    Hello guys
    I need quick help to position my background image.

    The current code in stylesheet is:
    body.full {background: #192426 url(images/style1/backgrounds/full/bg.jpg) 50% 0 no-repeat;}


    I need following things:
    I am using another image as background which is having dimensions: width=538 height=800

    I need the image should fit to all sized screens. means it should look good to 15 inch monitor user as well as 19 inch monitor user. I should not move. It should be fixed.

    Waiting for your help!

    Regards,
    Adwaitk007
     
    adwaitk007, Jan 4, 2011 IP
  2. rusel

    rusel Guest

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Apply image in background from page properties and fixed that image. fixed option will get you in page properties option.
     
    rusel, Jan 4, 2011 IP
  3. adwaitk007

    adwaitk007 Well-Known Member

    Messages:
    1,205
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    175
    #3
    will you help me by giving exact code to replace this one:

    body.full {background: #192426 url(images/style1/backgrounds/full/bg.jpg) 50% 0 no-repeat;}
     
    adwaitk007, Jan 4, 2011 IP
  4. web.tech

    web.tech Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To paste this code into your CSS.
    body.full
    {
    background-color:#192426;
    background-image: url(images/style1/backgrounds/full/bg.jpg);
    background-repeat:no-repeat;
    background-position:center;
    }
     
    web.tech, Jan 11, 2011 IP