﻿#menu {
    height: 45px;
    background-size: 100% 100%;
}

    /* Bottom-align top-level menu labels (supports multi-line labels like <br/>) */
    #menu > ul > li > a,
    #menu > ul > li > div > a {
        /* modern browsers */
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: end;
        justify-content: flex-end;
        /* keep the menu bar height and box model stable */
        height: 45px;
        box-sizing: border-box;
        /* allow wrapping for multi-line labels and center text */
        white-space: normal;
        text-align: center;
        /* preserve your existing padding/borders (adjust if needed) */
        padding: 3px 10px 4px 11px;
        border-right: 1px solid #011745;
        border-left: 1px solid #39507d;
    }

        /* Keep hover/active backgrounds working */
        #menu > ul > li:hover > a,
        #menu > ul > li > a.active {
            color: #fff;
            background: url('../images/menuRolloverBG7.gif') repeat-x bottom center #061D40;
        }
