469,963 Members | 1,924 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Background image; fixed vs scrolling

9
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?
May 10 '07 #1
3 3355
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:

Expand|Select|Wrap|Line Numbers
  1. body{
  2. background:url(yourimage.jpg);
  3. }
cheer
philleep
May 10 '07 #2
nomad
664 Expert 512MB
in css use:

Expand|Select|Wrap|Line Numbers
  1. body{
  2. background:url(yourimage.jpg);
  3. }
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
May 10 '07 #3
riccom
8
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(yourimage.jpg);
background-attachment: fixed;
}
May 11 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Serge Hartmann | last post: by
3 posts views Thread by veryred | last post: by
2 posts views Thread by day | last post: by
2 posts views Thread by Jonathan Carmichael | last post: by
1 post views Thread by Philipp Kraus | last post: by
4 posts views Thread by Philipp Kraus | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.