Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default mod on CSS Horizontal Dropdown

    I finally picked the category menu[1] I want for my site[2]. Tweaked it by grabbing the mega-menu style from this[3] and added some personal touch. The only thing I can't seem to figure out is how to change the menu placement; I'm designing my site to be viewable at 1024x768 and up. However, the more I move to the right categories the more the user would need to scroll(at 1024x768) to view the submenu. I've tried to tighten up the allowable width but then the font is either too small or the menus are to bunched together...Either-way I loose the 'userfreindliness' that the mega-menu style offers. I need someone with some css experience to shine-in with more options cuz mine suck since I don't really know what I'm doing.


    ref.
    [1] familynowDOTcaSLASHshop -sorry, it's not public yet!
    [2] CSS Horizontal Dropdown Menu [http://www.zen-cart.com/forum/showthread.php?t=58629]
    [3] CSS Horinzontal Dropdown Menu with JQuery [http://www.zen-cart.com/index.php?ma...ducts_id=1874]

    Thanks in advance for any assistance.

    Phil

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: mod on CSS Horizontal Dropdown

    You can address the menus on the right with increasing amounts of negative left positioning, like this:
    Code:
    #dropMenu>ul>li+li+li+li+li+li>ul {
       left: -4em !important;
       }
    #dropMenu>ul>li+li+li+li+li+li+li>ul {
       left: -12em !important;
       }
    #dropMenu>ul>li+li+li+li+li+li+li+li>ul {
       left: -20em !important;
       }
    #dropMenu>ul>li+li+li+li+li+li+li+li+li>ul {
       left: -1.9em !important;
       }
    The last ones need a small offset because they have only one column of items.

  3. #3
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: mod on CSS Horizontal Dropdown

    I certainly wouldn't have ever come up with that. Thank you!

  4. #4
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: mod on CSS Horizontal Dropdown

    I added a top-level category and removed 'Contact Us'. I'm assuming I need to change the above but can't for the life of me make sense of how this works...Help!?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: mod on CSS Horizontal Dropdown

    You have essentially one additional tab to care for. Take the last rule from above
    Code:
    #dropMenu>ul>li+li+li+li+li+li+li+li+li>ul {
       left: -1.9em !important;
       }
    and modify it and add another one:
    Code:
    #dropMenu>ul>li+li+li+li+li+li+li+li+li>ul {
       left: -28em !important;
       }
    #dropMenu>ul>li+li+li+li+li+li+li+li+li+li>ul {
       left: -1.9em !important;
       }

  6. #6
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: mod on CSS Horizontal Dropdown

    I still don't understand...But it works!

    Thank you so much.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: mod on CSS Horizontal Dropdown

    #dropMenu>ul>li+li+li+li+li+li+li+li+li>ul { means a sublist in a ninth consecutive li.

    #dropMenu>ul>li+li+li+li+li+li+li+li+li+li>ul {means a sublist in a tenth consecutive li.

  8. #8
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: mod on CSS Horizontal Dropdown

    Okay. That helps.

    Thanks!

 

 

Similar Threads

  1. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  2. CSS Horizontal Dropdown Menu With jquery
    By Ross_T in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 15 Sep 2011, 03:04 PM
  3. CSS Horizontal Dropdown Menu With jquery
    By HBELLC in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 15 Sep 2011, 01:00 AM
  4. Horizontal CSS Flyout Mod
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Aug 2010, 02:30 AM
  5. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR