37 users online (0 members and 37 guests)  

Thread: backgrounds


  Results 1 to 4 of 4

Related

  1. backgrounds    Forum: Graphics Forum
    Replies: 9
  2. iframes backgrounds    Forum: HTML Forum
    Replies: 7
  3. Gradients in backgrounds    Forum: HTML Forum
    Replies: 4
  4. Backgrounds and Images    Forum: HTML Forum
    Replies: 13
  5. Backgrounds    Forum: HTML Forum
    Replies: 2
  1. #1
    psychosaxman's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2002
    Posts
    1

    Angry backgrounds

    Hey,

    I've got a website (obviously), and i had one before where i had made the background a "fixed" image. So that it didn't move when i scrolled, but everything else on the page would move. But, i deleted that site (stupid stupid stupid) and now i can't remember where i got the code from or what the code was. So if anyone could help me out, please lemme know. Frustration isn't fun lol.

    -J-Rod

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there.

    The best way is to use CSS, put this code, modified for your image, in the <head> of your document -

    Code:
    <style type="text/css">
    
    body {
    background-image: url(yourimagefile.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    bavkground-position: top right;
    }
    
    </style>
    That should do it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    sheryl_rulez
    sheryl_rulez's Avatar
    Guest
    i cant use css....but html....so do you have the code for html??

  4. #4
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316

    RE

    yes u can can use css

    just add dean's code like so :

    **code start**
    <html><head>
    <style type="text/css">

    body {
    background-image: url(yourimagefile.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    bavkground-position: center;
    }
    </style>
    </head><body>
    **code end**



Tags for this Thread