Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,014,461 members, 7,371,499 topics. Date: Friday, 31 March 2023 at 05:42 PM

Web Design - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Web Design (201 Views)

(2) (3) (4)

(1) (Reply)

Web Design by codelove: 7:55am On Mar 30, 2017

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>



Re: Web Design by Horlufemi(m): 8:21am On Mar 30, 2017
add class with :hover

#menu li :hover {
background: grey;
}

let's see how it goes
Re: Web Design by codelove: 8:28am On Mar 30, 2017
thanks it worked as i wanted.

(1) (Reply)

Fully Approved US Adsense For Sale / How To Create Free Blog: Without Money / Youtube Adsense Account For Sale

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2023 Oluwaseun Osewa. All rights reserved. See How To Advertise. 26
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.