Results 1 to 4 of 4

Thread: Problems with correct Placement and "v" - Chrome CSS Drop Down Menu (v2.0)

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

    Default Problems with correct Placement and "v" - Chrome CSS Drop Down Menu (v2.0)

    1) Script Title: Chrome CSS Drop Down Menu (v2.0)

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

    3) Describe problem:
    IE: The Menue is not in the correct placement. About 10pixels to far left.
    FFox: The Menue shows the letter "v" as a placeholder(?)

    check the preview:
    frame:
    http://www.huelsmann-bau.com/aaa_preview/index.htm

    the files:
    top:
    http://www.huelsmann-bau.com/aaa_preview/top.htm
    content (with the menue):
    http://www.huelsmann-bau.com/aaa_preview/content.htm
    scrpits:
    http://www.huelsmann-bau.com/aaa_pre...hromestyle.css

    please answer here or mail:
    daze@daze.de
    Thank you 4 ya help!

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

    Default

    Hi;
    Regarding the "v', it's actually normal, and is a feature that appears in Firefox/Opera 8 to indicate that this menu item contains sub menus. You can remove this by removing this part of the .css file:

    Code:
    .chromestyle ul li a[rel]:after{ /*HTML to indicate drop down link*/
    content: " v";
    /*content: " " url(downimage.gif); /*uncomment this line to use an image instead*/
    }
    Regarding the 10px offset, unfortunately this is just due to the way the CSS renders the menu, and occurs on the DD demo page as well. Specifically, the submenus are horizontally aligned to the activating link itself, not the menu item containing the link. Since the link is slightly smaller than the menu item container, the submenu that aligns to the former appears slightly offset to the right.

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey!
    thanks for "clearing" the "v"... i will try that.

    if i understand u correctly: there is no way to fix the 10px offset in that menue - or is there?
    (sorry, i am from germany - not fluent in english-programming-chat)

    thanks again!

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

    Default

    Well, you could always edit the script to manually have it offset to the left a few pixels, by editing the line:

    Code:
    this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")-10+"px"
    Change "10" to your desired number.

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
  •