View Full Version : Animated Collapsable

10-04-2007, 11:33 PM
1) Script Title:
Animated Collapsible Div
2) Script URL (on DD):

3) Describe problem:
First off, let me say how much I like the expanding div script. It's excellent. I was going to use the script with a div that has dynamically changing text. So the visitor could expand it at any time in the day and get a different message, depending on what text I populate the div with.

Problem: when the div box is collapsed, and text changes dynamically inside the div, any visible divs below the div with the expanded text moves down about 3px. As soon as the innerHTML property writes to the div, it's pushing other content down a few pixels and I'm not sure why. I've tried fixing it with CSS and I've tried about 10 different work-arounds to keep the lower divs from moving.

Any thoughts?

10-05-2007, 08:37 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Does your webpage have a valid doctype at the top, for example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

Please post a link to the page on your site that contains the problematic script so we can check it out if you still have problems afterwards.