The main thing you have to keep in mind is to give the top-level LI’s
position:relative, and give the UL’s within it (containing the submenu)
position:absolute; and a left position of -99999px;
Then on hovering the top-level LI, change the left-position to 0. That’s pretty much what the article @Paulie_D mentioned is based on.