Results 1 to 4 of 4

Thread: Animated collapsible DIV and spacing

  1. #1
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default Animated collapsible DIV and spacing

    1) Script Title: Animated collapsible DIV

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem: I’m building a local website for my own use only, to catalogue and cross reference my DVD collection (sad, I know). I’m trying to use the Animated collapsible DIV to expand a single heading – but, in doing so, the spacing of my list becomes irregular.

    To give you an example, I’ve uploaded my main page to here: http://www.whitetara.co.uk/demo/index.html. As you’ll see “ABBA” is comparatively too close to “Abigail’s Party.” (Clicking on “ABBA” will open and close the DIV).

    Any ideas, anyone?

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your source code isn't very cross browser to begin with, and I am assuming you use IE. For that or for FF:

    Code:
    <div style="height:30px;">
    <a href="javascript:collapse1.slideit()" style="text-decoration: none;">
    <font color="#000000" face="Comic Sans MS">ABBA</font></a>
    </div>
    will work out pretty well.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default

    Thanks for having a look - I do have IE7 on my PC, but rarely ever use it. My default browser is FF 2.0.0.11

    Unfortunately I can’t get your code to work though. But, thank you anyway.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    My demo:

    http://home.comcast.net/~jscheuer1/side/dvd_h.htm

    In FF, your text size from the view menu should be normal (ctrl+0).
    Last edited by jscheuer1; 12-23-2007 at 09:31 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •