• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Background constant in browserwindow on refresh

Hi,

I've seen at some sites that the bacground image is constant even when a link is clicked on the page and the browser refreshes the page (see for example this site: svtplay.se).

When I do the same on my website the browser window content always becomes white before the page loads and background and content is loded again.

My css just looks like this for the pages body tag.
body
{
    background-color:black;
    background-image:url('../../images/bg.png');
    background-repeat:repeat-x;
   
}

How can I achieve the above effect where the background stays constant even on browser window update?

(I've used IE8 now when I've looked)

Thanks for your help!

Peter
0
peternordberg
Asked:
peternordberg
  • 7
  • 2
1 Solution
 
sajayj2009Commented:
body
{
    background:black;
    background-image:url('../../images/bg.png');
    background-repeat:repeat-x;
    background-attachment:fixed;  
}
0
 
sajayj2009Commented:
Hi you have given this color in body.

#f5f8f9;

0
 
sajayj2009Commented:
body
{
    background:#000 url('../../images/bg.png') repeat-x;
    /*background-attachment:fixed;  */
}
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
peternordbergAuthor Commented:
Hi and thanks for your answer,
I tried your suggestions, but still got the white window on load. See this video.
http://www.screencast.com/t/NjIxYmVl
Thanks for your help!
Peter
0
 
sajayj2009Commented:
Actually when u press refresh, ur browser deleted everything from ur cache and reloads website. So it goes to white color and loads everything
0
 
sajayj2009Commented:
Hope that is property of browser, where tweak is doubt..
0
 
peternordbergAuthor Commented:
But how can this site, svtplay.se, overcome it?
Peter
0
 
sajayj2009Commented:
It is also loading the same way...I see it white background on clicking on any image in slideshow while next page loads.
0
 
sajayj2009Commented:
What u have to do it to check;

when u are homepage, delete cache and click on new image in slideshow and see how it loads. When it is loaded once site takes images from cache...
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now