How to make this expandable menu as like image.
Visit : acceptsms.000webhostapp.com/demo to view and view I am using this code for that menu but not work:
HTML
<div id="ulMenuList" class="urbangreymenu">
<h3 class="headerbar"><a title="About Us">About Us</a></h3>
<ul class="submenu">
<li><a href="#" title="Organization">Organization</a></li>
<li><a href="#" title="Management team">Management team</a></li>
</ul>
<h3 class="headerbar"><a title="Commercial Information">Commercial Information</a></h3>
<ul class="submenu">
<li><a href="#" title="Applicable Policies">Applicable Policies</a></li>
</ul>
<h3 class="headerbar"><a title="Tariff Regulations">Tariff Regulations</a></h3>
<ul class="submenu">
<li><a href="#" title="Tariff Regulations">Tariff Regulations</a></li>
</ul>
</div>
CSS
<style type="text/css">
/* Some list and link styling */
.urbangreymenu
{
font-family: Verdana;
font-size: 11px;
margin: 0;
margin: 0 0 0 0px;
width: 200px;
}
/* Some list and link styling */
.urbangreymenu .headerbar
{
margin-bottom: 0px;
margin-top: 3px; /* text-transform: uppercase; */
padding: 0 0 0 0;
}
.urbangreymenu ul
{
padding: 0;
margin: 0;
list-style-type: none;
margin-bottom: 0px;
padding: 0px 0 0px 0;
}
.urbangreymenu ul li
{
width: 200px;
margin: 0;
padding: 0;
border-bottom: 1px #d2dbea solid;
padding: 2px 0 2px 0;
font-weight: normal;
}
.urbangreymenu ul li a, ul li a:visited
{
display: block;
text-decoration: none;
height: 15px;
font-size: 10px;
padding: 3px 0 3px 8px;
}
.urbangreymenu ul li
{
border-left: 20px solid #69c;
width: 150px;
margin-bottom: 0;
}
.urbangreymenu ul li a
{
display: block;
color: #369;
display: block;
text-decoration: none;
height: 15px;
font-size: 10px;
padding: 3px 0 3px 8px;
width: 170px;
}
.urbangreymenu ul li a:hover
{
display: block;
color: #369;
background-color: #eee;
padding: 3px 0 3px 8px;
font-size: 10px;
}
.urbangreymenu li
{
list-style-type: none;
}
.urbangreymenu h2
{
margin-top: 1.5em;
}
.urbangreymenu h3.headerbar
{
font-size: 10px;
}
/* Header links styling */
.urbangreymenu h3.headerbar a
{
color: Navy;
display: block; /*border-top: 1px solid #36a;
border-right: 1px solid #36a;*/
background: #ddd url('images/down.png') no-repeat 98% 50%;
padding: 5px 6px;
text-decoration: none;
}
.urbangreymenu h3.headerbar a:hover
{
color: #fff;
background: #69c url('images/down.png') no-repeat 98% 50%;
border-left: 20px solid #69c;
}
.urbangreymenu h3.selected a
{
background: #69c url('images/up.png') no-repeat 98% 50%;
color: #fff;
border-left: 20px solid #69c; /*padding: 3px 6px;*/
}
.urbangreymenu h3.selected a:hover
{
background: #69c url('images/up.png') no-repeat 98% 50%; /*color: #36a;*/
color: #fff;
border-left: 20px solid #69c;
}
.style1
{
text-align: right;
}
</style>
JavaScript
Don't having JavaScript 😢😢😢