html
<nav class="main_nav justify-self-end">
<ul class="nav_items">
<li class="active"><a href="index"><span>asd</span></a></li>
<li><a href="uslugi"><span>asd</span></a></li>
<li><a href="proekti"><span>asdf</span></a></li>
<li><a href="zanas"><span>asd</span></a></li>
<li><a href="porachka"><span>asd</span></a></li>
<li><a href="kontakti"><span>asd</span></a></li>
</ul>
</nav>
How can I create a submenu for the menu "ASDF" without ruining my website's design?
Here is some CSS code that may help:
.main_nav {
margin-right: -3px;
height: 100%;
flex-basis: 200%;
text-align: right;
}
.nav_items {
height: 100%;
}
.nav_items li {
display: inline-block;
margin-left: 35px;
height: 100%;
}
.nav_items li a {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
color: #0b1033;
letter-spacing: 3.5px;
height: 100%;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-left: 14px;
padding-right: 10px;
}
.nav_items li.active {
background: #ff4200;
}
.nav_items li.active a {
color: #FFFFFF;
}
.nav_items li:hover {
background: #ff4200;
}
.nav_items li:hover a {
color: #FFFFFF;
}
<nav class="main_nav justify-self-end">
<ul class="nav_items">
<li class="active"><a href="index"><span>asd</span></a></li>
<li><a href="uslugi"><span>asd</span></a></li>
<li><a href="proekti"><span>asdf</span></a></li>
<li><a href="zanas"><span>asd</span></a></li>
<li><a href="porachka"><span>asd</span></a></li>
<li><a href="kontakti"><span>asd</span></a></li>
</ul>
</nav>
I am seeking assistance in adding a well-designed submenu to my menu. Any help would be greatly appreciated.