Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Flexbox with Submenu

I have two questions. First question is when I hover over About Us the drop down menu i get isn't lined up with the main nav. I'm not sure how to align this vertically with the border of About Us??

My second question is in my css do I need to rewrite flexbox attributes for the drop menu with the hover state?? I'm not quite sure how I need to apply the layout to the submenu??

        <nav id="cssmenu">
            <ul class="navigate">
                <li><a href="#">Patients</a></li>
                <li><a href="#">Physicians</a></li>
                <li><a href="#">Payors</a></li>
                <li><a href="#">Specialties</a></li>
                <li><a href="#">Manufacturers</a></li>
                <li><a href="#">About Us</a>
                    <ul class="mini-nav">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Contact</a></li>
                        <li><a href="#">Resources</a></li>
                        <li><a href="#">Login</a></li>
                    </ul>
                </li>
            </ul>
        </nav>

    </body>
</html>```

```.navigate {
    -webkit-flex;
    -ms-flex;
    -moz-flex;
    display: flex;

    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    flex-direction: row;

    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    flex-wrap: wrap;

    -webkit-justify-content: space-around;
    -moz-justify-content: space-around;
    justify-content: space-around;

    padding: 0;
}

.navigate li {
    list-style-type: none;
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    width: 12.66667%;
    text-align: center;
    border: solid black;
}

.navigate a {
    text-decoration: none;
    color: #000;
}

.navigate li ul {
    display: none;
}

nav > ul > li > ul > li > a {
    padding: 0;
    margin: 0;
}

.navigate li:hover > ul {
    display: -webkit-flex;
    display: -ms-flex;
    display: -moz-flex;
    display: flex;

    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;

    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    flex-wrap: nowrap;

    -webkit-justify-content: space-around;
    -moz-justify-content: space-around;
    justify-content: space-around;

    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1;
    width: 100%; 

    border-style: none;
}

a {
    cursor: pointer;
}```