Background image; fixed vs scrolling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsr2
    New Member
    • Jan 2007
    • 8

    Background image; fixed vs scrolling

    Sorry im new to this but How do I fix a background image so that it doesn't move when I scroll up and down?
  • philleep
    New Member
    • Mar 2007
    • 74

    #2
    Originally posted by rsr2
    Sorry im new to this but How do I fix a background image so that it doesn't move when I scroll up and down?
    in css use:

    Code:
    body{
    background:url(yourimage.jpg);
    }
    cheer
    philleep

    Comment

    • nomad
      Recognized Expert Contributor
      • Mar 2007
      • 664

      #3
      Originally posted by philleep
      in css use:

      Code:
      body{
      background:url(yourimage.jpg);
      }
      cheer
      philleep
      note when you make your .jpg make sure you size it to your table..
      ie if your jpg is 400 by 240 and your table or frame is 600 bu 500 your jpg will repeat until it fills the space.

      nomad

      Comment

      • riccom
        New Member
        • Apr 2007
        • 8

        #4
        Originally posted by rsr2
        Sorry im new to this but How do I fix a background image so that it doesn't move when I scroll up and down?
        Hi.

        body{
        background-image:url(youri mage.jpg);
        background-attachment: fixed;
        }

        Comment

        Working...