I am facing an issue with my CSS where the sub menu is currently showing from the left side, but I would like it to slide up and down instead.
.outer
{
width: 100%;
text-align: center;
background-color: Gray;
padding-top: 20px;
border-radius: 30px;
}
.g_logo
{
width: 20%;
color: White;
float: left;
padding-left: 5%;
font-family:st @Gulim;
padding-bottom: 10px;
}
.g_home
{
width: 15%;
color: Black;
float: left;
padding-left: 1%;
font-family:@Gulim;
}
.g_services
{
width: 15%;
color: Black;
float: left;
padding-left: 1%;
font-family: @Gulim;
}
.g_achvmnt
{
width: 14%;
color: Black;
float: left;
padding-left: 1%;
font-family: @Gulim;
}
.g_cnct
{
width: 15%;
color: Black;
float: left;
padding-left: 1%;
font-family: @Gulim;
}
.clear
{
clear: both;
}
.g_home_items
{
margin-left: 28%;
background-color: Purple;
float: left;
width: 15%;
}
.g_services_items
{
margin-left: 42%;
background-color: silver;
float: left;
width: 15%;
border-radius:5px;
}
.g_achvmnt_items
{
margin-left: 57%;
background-color: Purple;
float: left;
width: 15%;
}
.g_cnct_items
{
margin-left: 72%;
background-color: AppWorkspace;
float: left;
width: 15%;
}
I need help with my Jquery code as well. When I hover over the menu, the sub-menu appears but I cannot access it. Can someone please assist me in fixing this?
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function () {
$(".g_services_items").hide();
$(".g_services").hover(function () {
$(".g_services_items").toggle("slow");
});
});
</script>
**HTML FILE this is my HTML coed plzzz help me for this**
<body>
<form id="form1" runat="server">
<div class="outer">
<div class="g_logo">
LOGO
</div>
<div class="g_home">
HOME
</div>
<div class="g_services">
SERVICES
</div>
<div class="g_achvmnt">
ACHIEVMENTS
</div>
<div class="g_cnct">
CONTACT US
</div>
<div class="clear">
</div>
</div>
<div class="g_services_items">
<li class="mega first haschild">
<ul class="megamenu level1">
<li class="mega first"><span class="menu-title">T-shirts</span></li>
<li class="mega"><span class="menu-title">Sport shoes</span></li>
</ul>
</li>
</div>
</form>
</body>