SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    B/g Image that doesn't scroll

    How do you set a b/g image or pattern that won't scroll with the browser?
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you know that it doesn't work in all browsers, right?

    anyway, if you stick it in the body tag it's, i think, bgproperties="fixed". that's deprecated though. in CSS it would be:

    Code:
       body {
    /*other body properties*/
    background: url(path_to_your_image.gif);
    background-attachment: fixed;
    }
    i think that's right...

  3. #3
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Aes
    Well, most people set it for a 1200 pixel width. However, I use 1280 and so I can often see it tile. I usually do about 1600 pixels wide (I know, it sounds huge) but if you have it only 5 pixels high it's not very large at all. But, I'd say 1300 width or so for most. Then, as a rule of thumb, the higher the height of the image, the shorter the width. Unless of course file size doesn't matter to you at all ... ::cough:: like those of you with a cable modem ::cough::
    Happy coding!
    he's not talking about an image repeating. he wants to know how to make it not scroll w/ the text.

  4. #4
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok ok. you see.

  5. #5
    SitePoint Zealot honging's Avatar
    Join Date
    Jan 2001
    Location
    Chapel Hill, NC
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bg-properties="fixed"

    works, i think. only for IE though

  6. #6
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay. There, cleared that problem. No need in making other people in SPF's think I'm stupid....
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  7. #7
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. yeah, I probably won't use it. I was just curious, may need it in the future.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com


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
  •