Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1266
  • Last Modified:

Javascript animated DIV is really slow in IE7

http://ne3d.cwtclients.co.uk/index.html

If you look at the site above. The bottom of the page has a tab (contact us), when you hover over the image a green DIV pops up. This is done by Javascript altering the height of the DIV while the css keeps bottom: 0 and position: fixed.

In FF this effect is perfect, no problems at all. However in IE7 it's really really slow. I've managed to track this down to the line in the CSS which keeps the tab at the bottom of the page (position: fixed). If I remove the line then its quick, but obviously it's not positioned at the bottom of the page anymore.

Does IE7 have a problem with position: fixed? Is there a way around this?
0
CreativewithTechnology
Asked:
CreativewithTechnology
  • 2
1 Solution
 
bluefezteamCommented:
Strange, it's as though the browser is constantly refreshing to make sure its at the bottom of the page.
yet when I shrink the window (not maximised) it's fine... very fast.

Can't you opt for position:absolute; top:100%;

that may work.
0
 
vibrazyCommented:
I've debugged the javascript and found the following error.

Try fixing that and see if it works.

Regards,
Vibrazy
ee.gif
0
 
bluefezteamCommented:
I tried this and I was able to float a div down at the bottom of the screen across firefox and IE6.

I think position:fixed; is causing IE7 to contantly refresh itself to make sure it's got the content at the bottom and freaking out...


<style>
div{height:50px;position:absolute;top:100%;margin-top:-50px;background:#CCC;display:block;width:100%;}
</style>
 
<div>hi</div>

Open in new window

0
 
CreativewithTechnologyAuthor Commented:
bluefezteam,

I had already tried your solution, it semi-works, but the problem is when there's a scrollbar on the right, and you scroll down, the bar at the bottom moves up with the scroll, rather than remaining at the bottom of the page all the time.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now