Mike Lewis
Programmer
I want to create a simple page that has all of its content in a fixed-width container, with a white background, centred horizontally in the window. The surrounding area is to have a grey background.
I have done the following:
This achieves exactly the effect I want.
The only problem is that, when the page loads, the entire browser window shows grey for a second or so, before the rest of the content appears, giving a slightly disconcerting flashing effect.
Obviously, this is not a big problem, but I was wondering if anyone can suggest a simple way of avoiding it.
Thanks.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
I have done the following:
Code:
html
{ background: lightgrey; }
body
{ width: 970px; background: white; margin 0 auto; }
This achieves exactly the effect I want.
The only problem is that, when the page loads, the entire browser window shows grey for a second or so, before the rest of the content appears, giving a slightly disconcerting flashing effect.
Obviously, this is not a big problem, but I was wondering if anyone can suggest a simple way of avoiding it.
Thanks.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business