Results 1 to 2 of 2

Thread: Smooth Navigation Menu- Screen Resolution

  1. #1
    Join Date
    Apr 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Smooth Navigation Menu- Screen Resolution

    1) Script Title: Smooth Navigational Menu

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

    3) Describe problem: How can I control the menu size based on Screen Resolution. Right now i have 1280 X 1024, menu fits in one line. If I do 800 x 600 menu goes in 2 lines. I want menu in one lines regardless of screen resolution. Please help
    Last edited by ddadmin; 04-19-2011 at 07:54 AM.

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

    Default

    This is more of a general CSS question actually, as the menu behaves the same way any horizontally oriented list would; there is nothing in the script that alters or gets in the way of that. With that said, there is no clear solution for this. If your menu contains a lot of top level menu items, it may very well just require a 1280x1024 resolution screen to fit them all on one line without creating horizontal scrollbars. If what you're asking is how to force the menu to show up on one line in spite of of horizontal scrollbars appearing, you might try adding the code in red inside ddsmoothmenu.css:

    Code:
    .ddsmoothmenu ul{
    z-index:100;
    margin: 0;
    padding: 0;
    list-style-type: none;
    line-wrap:nowrap;
    }
    Not sure if this will do the trick (if anything), but worth a shot.
    DD Admin

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
  •