Check out this JS Fiddle demo for a solution to your issue
I made a change from display:block
to display:inline
to fit everything on one line. However, you will need to adjust it based on your style design. I recommend using CSS classes for main-nav
to prevent any overlap and confusion.
Modification 1:
#main-nav ul li{ display: inline; }
Modification 2:
#main-nav a:after {
color: #aeaeae;
content: attr(data-description);
font-size: 11px;
font-style: italic;
font-weight: 400;
display: inline;
line-height: 0;
margin: 3px 0 -3px;
text-transform: lowercase;
}
Modification 3:
#main-nav ul ul a {
border: 0;
border-bottom: 1px solid #252525;
border-top: 1px solid #4c4c4c;
color: #fff;
display: inline;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-size: 11px;
letter-spacing: 0;
font-weight: 400;
padding: 8px 20px !important;
text-align: left;
text-transform: none;
}