Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please i need help i am try to do mouse hover on my web site but i have a problem,when i hover my mouse on a li it affect the other but i cn't figure out the problem please this is my code sumome should help me out thanks.
<div id = "tutorials-header-list">
		   <ul id = "menu">
				<li><a href="#">Home</a></li>
				<li><a href="#">About-us</a></li>
				<li><a href="#">Library</a></li>
				<li><a href="#">grammar-rule</a></li>
				<li><a href="#">Online-Calculators</a></li>
			</ul>
			</div>
			
			<style>
			
			#menu{
			    height:50px;
				width:100%;
				background:black;
			}
			
			#menu li {
			   float:left;
			   display:inline-block;
			   margin-left:40px;
			}
			
			#tutorials-header-list #menu:hover  li{
			     width:120px;
				 height:50px;
			     background:white;
			
			}
			</style>


What I have tried:

i have done this before but i don't know were am having problem in this particular code
Posted
Updated 30-Mar-17 0:24am

1 solution

#tutorials-header-list #menu:hover li{

use
CSS
#tutorials-header-list #menu li:hover {
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900