Results 1 to 2 of 2

Thread: Animated Collapsable

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsable

    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?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

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

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •