Fly Out Menu (v. 2.8 - 2.83)

To create a fly out menu (a vertical menu in which subcategories fly out as they are moused over) in version 2.8 through 2.83:

  1. In your template, use the style include:

    %CATEGORY_LIST%

    which references the file:

    navbar_lists.php
  2. In your template's styles or external style sheet, add:

    /* MAIN MENU */
    ul#ulsitenav, ul#ulsitenav li {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 175px;
        cursor: pointer;
    }
    
    ul#ulsitenav li:hover {
        position: relative;
    }
    
    ul#ulsitenav li a, ul#ulsitenav li ul li a {
        display: inline-block;
        zoom: 1;
        *display: inline;
        padding: 5px;
    }
    
    /* OTHER LEVELS */
    ul#ulsitenav li ul, ul#ulsitenav li:hover ul li ul {
        position: absolute;
        display: none;
    }
    
    ul#ulsitenav li:hover ul, ul#ulsitenav li:hover ul>li:hover>ul {
        display: block;
        left: 135px;
        top: 0;
    }
    
    /* COLORS */
    
    /* general background color */
    ul#ulsitenav li, ul#ulsitenav li ul li, ul#ulsitenav li:hover ul li:hover ul li {
        background-color: tomato;
    }
    
    /*general text color */
    ul#ulsitenav li a, ul#ulsitenav li ul li a, ul#ulsitenav li:hover ul li:hover ul li a {
        color: white;
        text-decoration: none;
    }
    
    /* border between backgrounds */
    ul#ulsitenav li:not(:first-child) {
        border-top: solid 1px white;
    }
    
    /* hover background - optional */
    ul#ulsitenav li:hover, ul#ulsitenav li ul li:hover, ul#ulsitenav li:hover ul li:hover ul li:hover {
        background-color: pink;
    }
    
    /* hover text color - optional */
    ul#ulsitenav li:hover>a, ul#ulsitenav li ul li:hover>a, ul#ulsitenav li:hover ul li:hover ul li:hover>a {
        color: red;
        text-decoration: none;
    }

    Changing the following as needed:

    • width: 175px; The width of each navigation block.

    • width: 135px; The width of the navigation block, minus 40.

    • background-color: tomato; The background color of the blocks.

    • color: white; The text color of the blocks.

    • border-top: solid 1px white; The color of the border between blocks.

    • background-color: pink; The background color of the blocks when you hover over thenm.

    • color: red; The text color of the blocks when you hover over them.

  3. Save the template and any style sheets.