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
Peter NordbergIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Peter NordbergIT ManagerAuthor 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
Peter NordbergIT ManagerAuthor 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.