jeudi 9 avril 2015

Drop down menu is Glitchy at the edge of menu button

I have an odd issue. I created a standard dropdown menu but I am having an issue where the menu is dissapearing when I get right between the menu and the drop down. I cant find any css that would stop the hover state but maybe your eyes are better than mine.


Here is a gif of what is happening: http://ift.tt/1IxqoZM


Here is a link the current version of the website: http://ift.tt/1CnImXz


My js code:



//------- NAV MENU --------//
$('nav li').hover(
function () {
$('ul', this).stop(true,true).fadeIn({ duration: 300, queue: false }).slideDown(300);
},
function () {
$('ul', this).stop(true,true).fadeOut({ duration: 300, queue: false }).slideUp(300);
});


Relevant HTML:



<nav>
<ul class="center">
<li class="menu">
<a href="#Home">Home</a>
</li>
<li class="menu">
<a class="inactive">Get Started</a>
<ul class="dropdown hidden" id="drop1">
<li class="dropitem"><a href="#Start">Start Making Your CCR</a></li>
<li class="dropitem"><a href="#HowItWorks">How CCR Writer Works</a></li>
<li class="dropitem"><a href="#Why">Why Choose CCR Writer</a></li>
<li class="dropitem"><a href="#MyPrevious">Access My Previous CCRs</a></li>
</ul>
</li>
</ul>
</nav>


Relevant CSS:



nav > ul {
margin: 0 auto;
padding: 0;
list-style-type: none;
height: 100px;
float: right;
padding-right: 30px;
}

li.menu {
display: inline-block;
padding:0;
margin: 0;
padding-left: 15px;
padding-right: 15px;
height: 100px;
position: relative;
}

li.menu:hover { background-color: #FFFFFF; }

li.menu a {
font-size: 12pt;
padding-top: 33px;
display: table-cell;
vertical-align: middle;
position: relative;
}

li.menu:hover a { color: #232323; }

li.dropitem {
padding: 0;
margin: 0;
}

li.dropitem:hover { background-color: #DADADA; }

li.dropitem a {
color: #232323;
margin: 0;
padding: 10px;
padding-left: 15px;
padding-right: 15px;
font-size: 13pt;
}

ul.dropdown {
position: absolute;
white-space: nowrap;
width: auto;
min-width: 100%;
top: 100px;
left: 0;
padding-top: 0;
margin: 0;
padding-bottom: 10px;
z-index: -1;
border: none;
border-radius: 0px 0px 2px 2px;
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176);
background-color: #FFF;
height: auto;
}




Aucun commentaire:

Enregistrer un commentaire