473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 3528
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

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

Similar topics

8
by: Serge Hartmann | last post by:
hi there, I created two different backgrounds for the same page to obtain a (fake) left margin and a (true) right margin. -> left background, defined in body section, aligned bottom and with...
3
by: veryred | last post by:
Hello. I'm placing a background image in a table cell using a style sheet--I reads it, Netscape, Firefox, and Opera do not--they will however read background-color when I insert that. This is...
2
by: day | last post by:
I'm trying to use a non-scrolling background image within a div (the non-scrolling part is a "nice-to-have" vs a "have to have"). The style for that is: <div style="height=400px;...
1
by: dudelman | last post by:
Hi Folks, I have stumbled over this website <http://www.westciv.com/style_master/academy/css_tutorial/index.html> and I wonder how they manage to invert the colors of the fixed background image...
2
by: Jonathan Carmichael | last post by:
I'm trying to create a fixed, no-repeat, centered background image using an external css. Everything works great until I add background-attachment: fixed then it just doesn't show the image...
3
by: Sridhar | last post by:
Hi, I have created a user control which has the html code as follows <TABLE id="ToolBarTable" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td align="right"...
1
by: Philipp Kraus | last post by:
Hi, I have one problem with my position of my background image. I have created one div-tag that has a background image, which should be fixed during scrolling. On the left side of the div is my...
4
by: Philipp Kraus | last post by:
Hi, I have one problem with my position of my background image. I have created one div-tag that has a background image, which should be fixed during scrolling. On the left side of the div is my...
0
by: ton | last post by:
Hi, I have an Image which is dark grey/black, at the top a white line, at the left site a white line as well. At 192 px from the left of the screen I position a DIV with this image as the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.