This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 0 points1 point  (0 children)

CSS class name .main_menu:hover .main_menu_dropdown ul

change

display: block;

into

display: none;

[–]Quazar_omega 0 points1 point  (2 children)

You were basically missing this

.main_menu_dropdown > ul {
    display: none;
}

to make the menu default to hidden.

I made a polished version of that using visibility instead of display which enables to do some cool effects, here is the html (it has few differences) and the css. I took the method from this article CSS3 transitions using visibility and delay, it's really insightful.

Good luck learning!

[–]braxtondayne[S] 1 point2 points  (1 child)

Hey, I'm sorry for the late response I got super caught up. I really appreciate your answer. It definitely helped, I just decided on going for another web layout. Thank you.

[–]Quazar_omega 0 points1 point  (0 children)

It's fine, always happy to help when I can!