Results 1 to 5 of 5

Thread: DD all levels menu problem on Edge browser

  1. #1
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default DD all levels menu problem on Edge browser

    1) Script Title: All Levels menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/

    3) Describe problem: On the Edge browser the last menu item moves down a line.
    http://sandhillsmoaa.com

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

    Default

    Looks like it's fixed now?
    DD Admin

  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

    Don't have Edge, but on any browser, if the window is too narrow the last menu item does move down a line - that is until the window gets a little narrower, at that point the alternate select drop down menu icon appears. I'm not sure how your page is determining when to do this (it can be done via media queries or via javascript), but whatever the method, perhaps you just need to make the point at which the icon takes over be a little wider.

    Ah, it's in the menu script itself. You have max-width: 800px set. Perhaps 810px would be better.
    Last edited by jscheuer1; 08-04-2016 at 04:51 PM. Reason: saw it in the script
    - John
    ________________________

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

  4. #4
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    It only does this on the Edge browser. It's fine on IE, Chrome, Safari.
    I changed the menu max-width, but that didn't help. I tried changed the container max-width to 820 and that worked on the menu, but I didn't like the container looking so big.
    I went to the ddlevelsmenu-topbar.css and changed the left margin from 10px to 0 and the margin between tabs from 2 to 1. It works, but I still don't understand why it's only on the Edge browser. I don't like that browser, but need to be sure anyone who uses it will see the proper menu.
    Thank you for your help.

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

    If it works great! . . . By way of explanation (and to offer some alternative, should that ever become desirable), different browsers adhere to different standards as regards what border, margin, padding and some other things actually mean in relation to box width, which in turn affects what they regard as the dimensions when evaluating things like width and maxwidth. You can set an element's box-sizing property in css style, but I'm not clear if doing so in this particular case would help, nor, if it would, which element(s) would need their box-sizing to be set in order to make the behavior more universal. It can come in handy though sometimes. See:

    http://www.w3schools.com/cssref/css3_pr_box-sizing.asp

    Perhaps (in an existing stylesheet for the page):

    Code:
    * {
    	box-sizing: border-box;
    }
    Which will set all elements to this treatment might work, it helps in many similar cases.
    Last edited by jscheuer1; 08-04-2016 at 11:56 PM. Reason: add info
    - John
    ________________________

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

Similar Threads

  1. Keeping dropdown menu within browser edge when top level element is sticky
    By codenovice in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-15-2014, 05:36 PM
  2. Can I change "edge" from browser to table edge?
    By backyarder1 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-06-2010, 07:27 PM
  3. spread to the edge of the browser
    By The_Alligator in forum CSS
    Replies: 3
    Last Post: 12-07-2009, 06:03 PM
  4. Content all the way to browser edge
    By Irishjugg in forum CSS
    Replies: 0
    Last Post: 07-23-2008, 12:40 AM
  5. Anylink Browser Edge Issue
    By bfisher in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 08-29-2006, 11:58 AM

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
  •