Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    css problem whats wrong with this css for my dropdown menu?

    I've got this in my tpl_modules_categories_tabs.php to do a drop down menu. I am having two problems.

    1. The dropdown menu won't work until you click on a top category, then it starts to work when you hover.

    2. The position of the drop down is not good at all - its supposed to drop down, mine drops to the right of the category.

    I have browsed several times on here to try and work it out, and visited several code tutorial sites and I am still stumped.

    <style type="text/css">

    #navCatTabsDropdown {
    width:100%;
    background:#c04edb;
    float:left;
    }

    #navCatTabsDropdown li
    {
    float:left;
    display:inline;
    vertical-align:middle;
    background-color: e978be;
    posotion: relative;
    }

    #navCatTabsDropdown li li {float: none;}

    #navCatTabsDropdown * li ul
    {
    visibility:hidden;
    background-color: #e978be;
    position:absolute;
    padding: 0.5em;
    z-index: 100;
    }

    #navCatTabsDropdown * li:hover ul
    {
    visibility:visible;
    color: #ffffff;
    background-color: #c04edb;
    border: 0px outset;
    white-space:nowrap;
    }
    </style>

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: whats wrong with this css for my dropdown menu?

    Do you have a URL for us?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: whats wrong with this css for my dropdown menu?

    yep i do, its a work in progress but i'll put it on here. the links are deliberately white.

    I've managed to sort out the #2 issue of dropdown placement by putting in

    #navCatTabsDropdown * li ul
    {
    float:left;
    visibility:hidden;
    text-align:left;
    position:absolute;
    top:15px;
    left:0em;
    padding: 0em 0.5em 0em 0.5em;
    line-height:15pt;
    z-index: 100;
    }

    I would like it to drop a little lower to the bottom of the bar, but when I do that - it dissappears again before you can scroll the mouse onto it.

    Still got issue #1 though - hover wont work until you have clicked on a main category.

    Please view the problem at miracle baby.co.nz/ estore /index.php?main_page=index&cPath=21_59
    Last edited by 1kell; 27 May 2010 at 12:45 PM.

  4. #4
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: whats wrong with this css for my dropdown menu?

    ps another thing with the z-index, when the menu drops down over the "sort by items starting with" box, the menu dissappears behind that where it overlaps.

  5. #5
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: whats wrong with this css for my dropdown menu?

    okay i really thought i had this almost sorted, but navigating using the cattabs menu i have noticed a major bug with breadcrumbs.

    It doesn't show where you are in order to category list - its showing link history instead!?

  6. #6
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: whats wrong with this css for my dropdown menu?

    Quote Originally Posted by 1kell View Post
    okay i really thought i had this almost sorted, but navigating using the cattabs menu i have noticed a major bug with breadcrumbs.

    It doesn't show where you are in order to category list - its showing link history instead!?

    kell, There's too many changes to post here, so I'm pm'ing you. And your breadcrumb seems to be keeping up with every change correctly. Maybe you just need to clear your browser's cache?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  7. #7
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: whats wrong with this css for my dropdown menu?

    maybe, thanks I pm'd you back, thanks for helping out I have taken it this far but am pretty stuck.

  8. #8
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: whats wrong with this css for my dropdown menu?

    Not a problem, kell. That's what we're here for.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  9. #9
    Join Date
    Jul 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: whats wrong with this css for my dropdown menu?

    the breadcrumb is still acting funny.

    You choose something in Cat A to look at, then choose something in Cat C to look at, and the breadcrumb trail will show

    "Home-Cat A- Cat C Product"

    when it should be
    Home-Cat C - Cat C Product."

    maybe something in the breadcrumb needs to be changed to work with the Cat Tabs dropdown?

  10. #10
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: whats wrong with this css for my dropdown menu?

    I see what you mean about the breadcrumbs. Don't know what the problem is with that. Nothing SHOULDN'T need to be changed for it to work correctly.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. CSS Dropdown menu for the header- With Categories!
    By jettrue in forum All Other Contributions/Addons
    Replies: 2344
    Last Post: 5 Mar 2020, 09:35 PM
  2. Problem with CSS Dropdown menu
    By nicksab in forum General Questions
    Replies: 4
    Last Post: 24 Apr 2012, 05:48 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. Guess whats wrong with this code.... (footer links)
    By customk1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Mar 2009, 01:40 AM
  5. Whats wrong with this query? Fresh eyes needed ;)
    By Reesy in forum General Questions
    Replies: 9
    Last Post: 11 Sep 2006, 05:15 AM

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