how can i eliminate flickers of my css rollovers in IE?
freshmen
6:27 am on Oct 17, 2005 (gmt 0)
i designed my buttons using css and viewing it in FF but when i viewed it in IE the buttons were all white while the page was still loading.
i heared that it can be eliminated using preloaders but i cant find a good tutorials in using preloaders.
how can i eliminate this?
and hints in using preloaders...
thanks! Ü
Robin_reala
6:35 am on Oct 17, 2005 (gmt 0)
If you google for CSS Sprites you'll come up with a technique to get past this. The idea is to bake all your images into 1 fille (stacked on top of each other) then use the background-position property to clip only the state you want into view.
freshmen
6:59 am on Oct 17, 2005 (gmt 0)
but if i change the "background-position" wont it disarrange my buttons images when the mouse is over it?
Hanu
7:05 am on Oct 17, 2005 (gmt 0)
Think about the button as a smaller window over a bigger background image. By changing the background position you slide the image underneath the window such that a different part of the image appears in the window. It's the fastest method for mouse-overs and it doesn't flicker in IE and Firefox.
freshmen
7:11 am on Oct 17, 2005 (gmt 0)
even if the background of the button is just a small slice and background filled the block-box i can still use the background-position? without misaligning the images?
Hanu
12:36 am on Oct 18, 2005 (gmt 0)
Yes. Only condition is that the button box is of fixed size. I can sticky you an example site of mine if you like.