Results 1 to 4 of 4

Thread: Anylink CSS Drop Down Menu Display Quirk

  1. #1
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anylink CSS Drop Down Menu Display Quirk

    Hi

    I'm using the Anylink CSS Drop Down menu and am getting this odd display quirk.

    I want to put each individual link inside one cell of table. I have 8 cells horizontally. The problem is if I specify the table width of 100% or a width greater than 670, a horizontal space is created that makes a horizontal scroll bar appear in the browser (both IE and Firefox), the space is just white space. The table does not stretch off the screen and in fact falls well short of it.

    The quirk is that if I mouse over the last menu to make that drop-down appear, the horizontal space will disappear and the page goes back to normail (no horizontal scroll bar).

    I'm baffled as to why this happens. If I need to post some code, let me know

    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

    Quote Originally Posted by bkdell11
    The problem is if I specify the table width of 100% or a width greater than 670
    Like the doctor said when I told him, "Doc, it hurts when I go like this, uhgn . ." -- "Well, don't go like that then."

    Seriously, the box model in IE has it so that a table of width 100%, depending upon its content, will often not fit on a page.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    But this also occurs in Firefox/Mozilla as well. I'm looking at the script trying to see if there is something that interferes with a table. To me, it seems the script is anticipating more space than needed and once you rollover the last menu, it realizes it doesn't need the space and gets rid of it.

    Thanks for the reply

  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

    Probably it is the use of an off the page element to store drop down content until it is made visible. This script wasn't really meant to go in a table. If you can make it work in one just by not setting the table width too wide, that's a good thing. One thought though, if the script uses visibility:hidden and visibility:visible to switch content, you can experiment with substituting display:none and display:block.
    - 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
  •