Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS sub-nav won’t display: inline

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #42705
    Bluej
    Member

    Hello
    Here is a CSS stumper — http://debarnoldinc.com/blog/

    The desired navigation display is horizontal, like this

    PARENT1.current sub1.active subpage2 subpage 3

    PARENT2

    PARENT3

    The problem:
    When PARENT2 becomes .current, and it’s sub1 is active, the whole submenu clears on the left side.

    I don’t know why it is doing that — Sub-pages after PARENT1 stay inline when one of the children is activated.

    This is an old WordPress theme I just updated to use the current menu manager.

    Can you see what is wrong with the CSS? (It validates without errors).

    Thanks tons.

    PS I think the problem is that only PARENT1 uses line 90 of style.css:

    li.current-menu-item ul.sub-menu li,
    li.current-page-ancestor ul.sub-menu li,
    li.current-menu-ancestor ul.sub-menu li {
    display: inline;
    }

    #124467
    tomrogers123
    Member

    Not to sound like an idiot but where exactly on the page you linked to is the menu in question?

    #124469
    Bluej
    Member

    Hey tomrogers123 no worries

    The nav is in the upper left corner

    And I’m using Chrome

    #124471
    tomrogers123
    Member

    I know I’m probably dumb but I have no idea what’s wrong here! :) Could you describe in more detail?

    Apologies for my ignorance! Just getting used to how best to help in the forums.

    #124472
    Bluej
    Member

    You’re OK tom — somehow I stumbled on the fix — so don’t worry — all set for now.

    #124474
    Bluej
    Member

    Marked solved automatically? Too cool…

    #124475
    Paulie_D
    Member

    >Marked solved automatically? Too cool…

    No….that was me…I just happened to be reading.

    #124476
    Bluej
    Member

    @paulie_D that was so awesome – thank you…

    I can never seem to find that ‘marked solved’ button when I want to…

    #124481
    Paulie_D
    Member

    You can Edit your original post and there is a checkbox at the bottom.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.