Results 1 to 5 of 5

Thread: Background image on a site

  1. #1
    Join Date
    Jan 2009
    Posts
    52

    Background image on a site

    hello people.
    I have a site in progress but I would have a background image that vision adjusts to the width and height of the people their screen.
    so that my image full browser takes.

    I have to css code but it does not allow this


    Cascading Style Sheet:
    body (
    background-image: url (background.gif);
    background-repeat: no-repeat;
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    )

    or should I do that with javascript?
    please tell me thank you.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Background image on a site

    not sure but 2nd line change even this:
    background-repeat: repeat;

    A background image can not dimensions passing through CSS, so do not adjust to the resolution.

  3. #3
    Join Date
    Dec 2008
    Posts
    322

    Re: Background image on a site

    I recommend to use a pattern instead of an image, though this does not answer your question.

    If you have demonstrated how it would need would be useful on tips.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Background image on a site

    Best way is probably an img tag in the background to levitate (using z-index), these 100% height and width to and fixed positioning.This is possible with CSS3. This is already supported by Safari, Opera and other WebKit-based browsers

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Background image on a site

    ok I have a put the CSS code that use:
    Cascading Style Sheet:
    body
    (
    background-color: FFFFFF;
    background-image: http: //4.100.114.106/467950001-4680...6_6_m8Pr.jpeg;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: fixed;
    )

    Now I see that they are indeed only an image with height and width to 100% in the code already.

Similar Threads

  1. How to set different background image for HTC Incredible S
    By Purujeet in forum Portable Devices
    Replies: 6
    Last Post: 29-11-2011, 10:54 PM
  2. Background image for xdm
    By Maya Angelou in forum Windows Software
    Replies: 4
    Last Post: 22-04-2010, 10:04 AM
  3. TD background image
    By Chrisch in forum Software Development
    Replies: 3
    Last Post: 18-11-2009, 01:06 PM
  4. How to put an image as MySpace background?
    By Tobius in forum Customize Desktop
    Replies: 2
    Last Post: 30-03-2009, 11:29 AM
  5. Background image is repeated
    By Jkbaseball in forum Customize Desktop
    Replies: 8
    Last Post: 22-10-2008, 02:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,178,916.44880 seconds with 17 queries