I need some help adding a sub-menu to my drop-down function. I'm not very familiar with CSS, so I'm struggling to figure out how to do it. Ideally, I want the sub-menu to open to the right when the cursor hovers over it. Below is the CSS and HTML code related to this issue.
CSS
ul.dark_menu {
list-style: none;
padding: 5px 1px;
font-family:'Segoe UI Light', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
font-weight: 200;
font-size: 16px;
letter-spacing: 0.01em;
font-smooth: always;
color: #000000;
line-height: 15px;
margin: auto;
width: 1018px;
position: relative;
background: #2B5797;
}
/* Rest of the CSS rules omitted for brevity */
HTML
<div class='menujohanes'>
<ul class='dark_menu'>
/* HTML code here */
</ul>
/* Form section included in the HTML */
</div>
If anyone could provide guidance on how to properly include a sub-menu in this structure, I would greatly appreciate it. I tried searching Google for solutions but couldn't find clear instructions on how to achieve this.
Thank you!