views:

204

answers:

1

Hi,

i know, the title is a bit crampy, but it's a weird problem.

i'm planning to adopt a open source webdesign. It all looks good on firefox 3.5 on vista, but when i open it up in Ie8 on vista the background goes 'flashy' on reload (i can't find another word, sorry) what i THINK happens is that the background source (a 1px width and 1200px high image) gets refreshed every time so it has to paint 1600 vertical lines every page reload. (but it's only a guess: FF has to do the same and no problems there. The css for the background is this:

font-size: 11px;
    font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
    margin: 0px;
    padding-left: 50%;
    clear: both;
    position: absolute;
    background: url('images/bggrad2.jpg') repeat-x;
    background-color: #464646;

i've put it online here: http://www.mydotnet.nl/test/

I'm realy curious what you're experiences are (maybe it's just my pc)

i also tried to enlarge the background to 1 big one (3000*1200) so it only has to show one picture, but that didn't work :(

Michel

EDIT: there is also a version with one big (3000*1200) picture so the browser doesn't have to paint 1600 vertical lines. it's here http://www.mydotnet.nl/test/index2.html

+1  A: 

Oh man, IE fun. I'm a mac person, so let's see how much I'll be able to help with this voodoo...

Have you tried using a different image format, eg: png?

See if you can find another website with an image background and load it in IE to see if it behaves similarly. If not, try stealing the image they use and setting it as your own page background to see if it's the image that is the problem.

Also, is there any reason why it has to be so big? I find that if you want a gradient background like that, you can get away with having the image be 600-700 px tall and setting the background-color to whatever the bottom gradient color is. You may also like to set the background to fixed

Edit: Now that I look at this, I'm pretty sure this happens across the board when some browsers are loading images. It usually flashes the color of the background, and then displays the image a split second later. There might not be anything you can do about it. Try finding other examples, eg: wikipedia. Often it's less noticeable because the background color and the image color aren't very different. I would encourage you not to worry about it. I don't think your users are going to be stressing about it.

Ellie P.
I doubt an image format will make it better but maybe. I also doubt its na issue with the image per se (unless the file size is huge - like > 100k) though even then provided you have a decent connection i cant imagine it being an issue.
prodigitalson
noope, didn't try it. but now i will, hold on
Michel
did it 'flash' in your browsers too?
Michel
nope, no succes with the PNG or the fixed.
Michel
Actually, come to think of it, it does flash in Safari. Not in Firefox, though.
Ellie P.
Did you try resizing it? Also, I edited my answer, because after exploring various websites, I've found that many of them do "flash" (sometimes not as perceptibly.) I think how noticeable the flash is has to do with the contrast between the background image and background color.
Ellie P.
in the edit of the question i've put the uri for the large background image version. Still flashing, but you can see it's only one image. Annoys be though you can see it, and FF is perfectly ok!
Michel
took your latest advice in the end: "I would encourage you not to worry about it. I don't think your users are going to be stressing about it.". Thanks.
Michel