Results 1 to 3 of 3

Thread: Anylink Dropdown adding unwanted margin on page top

  1. #1
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Anylink Dropdown adding unwanted margin on page top

    The script is adding unwanted gap on page top, preventing a div on the top to be placed on page top without any margin. I believe this problem is because of this line:
    Code:
    document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
    Why is this line there outside of a function, can it be placed inside a function so this div is not loaded by default. I know this is weird problem (it doesn't occur at a different page on my site, or at the DD sample). But I have taken out every piece of code from the page and tested it, and the addition of this script is the one causing the that extra unwanted margin.

    P.S. The problem only occurs in IE. Page loads fine in firefox.

  2. #2
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    try doing somthing like a locked command or somthing like that much like you would in a table

  3. #3
    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

    You could try changing all occurrences of:

    visibility

    to:

    display

    all uses of:

    hidden

    to:

    none

    all of:

    visible

    to:

    block

    In all code and markup of the script. That will keep that division out of the flow of the document, except when it is being used. If that doesn't work:

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - 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
  •