I am creating a page that uses AJAX to switch content, and each of the 5 pages have their own background colour.
Changing the page, makes the current background animate to the new one. I have 24bit PNGs with alpha transparency which overlay the background colours changing (it works alright).
There is however, one small problem. On occasion, in Firefox 3.5.1 at least, and Safari 3/4, the background will change, however my #main-container
div will not. The container has background: transparent
to be sure.
The problem is, this doesn't occur everytime, only sometimes. Could this just be a quirk of what I'm making the browser do?
I am using a jQuery plugin to animate the background colour.
I was wondering, does anyone know how I could force the #main-container
to inherit it's parent container's (body
) background?
I know I could ping it with a setInterval()
, but that will be an ugly solution.
Any suggestions very appreciated.
The site is viewable @ http://www.acura.com.au/~kohana/
There is a menu to the right, and clicking those sections are where the problem is. You may have to navigate at least 8 times or so to see the quirk.
Any help is very much appreciated!
UPDATE
I'm going to attempt a setInterval()
to check the colours... but not sure what exactly I'll do if I detect them being wrong.