This is a discussion on "[SOLVED] About "background-image: fixed;" Scrolling Issues" within the Web Page Design section. This forum, and the thread "[SOLVED] About "background-image: fixed;" Scrolling Issues are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] About "background-image: fixed;" Scrolling Issues
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] About "background-image: fixed;" Scrolling Issues
Consider the following CSS:
I have also searched and searched and searched for a solution to this problem. If I take out the fixed command, the scrolling is perfect. How can I use the background-attachment: fixed command and maintain perfect, or at least smoother scrolling? |
|
|
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
Aww. Someone must have some light to shed on this.
Ok, the problem is that I want to position my background image with the variables of "0% 0%" but the "background-position" command only works together with the "background-attachment :fixed;" command. I don't mind having a scrolling background if I can use the position command. That said can anyone advise then how to either: a. Use the "background-attachment: fixed;" command and maintain perfect, or at least smoother scrolling or b. Use the position command without "background-attachment: fixed;" Many thanks for any helpful responses. |
|
||||
|
Re: About "background-image: fixed;" Scrolling Issues
Firstly I should clarify background-position does work, even without a fixed attachment.
However, you are correct in saying that it does not have the same effect as background-attachment: fixed. background-position will set the position of the background in relation to the size of the browser viewport at load, but will then scroll with the content (if it overflows the viewport size). As to your problem, I very much doubt there is anything you can do with regards to 'chopiness.' CSS won't be the only issue; system hardware (particularly graphic cards) play a major role in the 'smoothness' of internet browsing. Have you got a link to a demo, so other users can test out the scenario?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
Interesting.
If you reconsider the original CSS code I provided in my first post; well, if I remove the background-attachment: fixed; command it no longer positions to the 0% 0% co-ordinates but instead positions itself around the main table content, and then badly tiles the excess/exterior of the page at different co-ordinates. Resulting in an additional superfluous background tile. I'm currently editing it offline so can't show you a working page. Everything works fine, it's just what happens if I remove the fixed command. |
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
According to w3schools Firefox doesn't support the positition command without fixed, but it appears for me that neither does IE.
|
|
||||
|
Re: About "background-image: fixed;" Scrolling Issues
If you don't specify a backround-repeat, then you won't see the effect of background-position as the browser will tile the image everywhere!
EDIT: Firefox most definitely supports background-position.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
Oh I see. I'll add in the repeat command and see what happens.
Here's the link to what w3schools said: http://www.w3schools.com/css/pr_background-position.asp Thanks for your advice. |
|
||||
|
Re: About "background-image: fixed;" Scrolling Issues
I believe W3 Schools are referring to the original Mozilla browser. Either way, I can assure you background-position works in Firefox
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
I've added the repeat command:
|
|
|||
|
Re: About "background-image: fixed;" Scrolling Issues
Ah, splitting the html assignments from the body assignments solved my solution.
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |
| background IMAGE"S" need one on left one on right | bruno89 | Web Page Design | 11 | Jan 28th, 2007 05:15 |