Jump to content

Flicker On Dropdown Menu, On First Hover. Doesn't Happen Afterwards


Recommended Posts

Hello,

I have a dropdown menu, which has a strange flicker effect when you first hover over it. If you hover over it afterwards then the effect doesn't happen. It seems to occur in Chrome and IE.

 

#nav1
{
padding:0px;
list-style-type:none;
}


#nav1 li
{
float:left;
width:156px;
height:auto;
}


#nav1 li a
{
display:table-cell;
width:143px;
background-image:url(../images/hcp-main.jpg);
height:105px;
color:#ffffff;
font-size:16px;
vertical-align:middle;
text-align:center;
font-weight:bold;
text-decoration:none;
}


#nav1 li a:hover
{
background-image:url(../images/hcp-hover.jpg);
}


#nav1 li ul
{
padding:0px;
list-style-type:none;
}


#nav1 li ul li a
{
font-size:12px;
font-weight:normal;
display:table-cell;
vertical-align:middle;
text-align:left;
padding-left:7px;
width:129px;
padding-right:7px;
}


#nav1 li ul li.crohns
{
height:29px;
width:143px;
}


#nav1 li ul li.ra
{
height:29px;
width:143px;
}


#nav1 li ul li.ps
{
height:42px;
width:143px;
}


#nav1 li ul li a.crohns
{
margin:0px;
background-image:url(../images/crohns-a.jpg);
height:29px;
width:129px;
}


#nav1 li ul li a.crohns:hover
{
margin:0px;
background-image:url(../images/crohns-ahover.jpg);
height:29px;
width:129px;
}


#nav1 li ul li a.ra
{
margin:0px;
background-image:url(../images/ra-a.jpg);
height:29px;
width:129px;
}


#nav1 li ul li a.ra:hover
{
margin:0px;
background-image:url(../images/ra-ahover.jpg);
height:29px;
width:129px;
}


#nav1 li ul li a.ps
{
margin:0px;
background-image:url(../images/ps-a.jpg);
height:42px;
width:129px;
}


#nav1 li ul li a.ps:hover
{
margin:0px;
background-image:url(../images/ps-ahover.jpg);
height:42px;
width:129px;
}

 

<ul id="nav1">
   <li><a href="#">Patient</a>
    <ul>
	 <li class="crohns"><a class="crohns" href="index.html">Crohn's Disease</a></li>
	 <li class="ra"><a class="ra" href="index.html">Rheumatoid Arthritis</a></li>
	 <li class="ps"><a class="ps" href="index.html">Psoriasis / <br />
	  Psoriatic Arthritis</a></li>
    </ul>
   </li>
   <li><a href="index.html">Healthcare Professional</a></li>
  </ul>

 

Any ideas what's causing it? Background images are jpg's so it isn't a PNG issue

 

Thanks,

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.