Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,593 members, 7,955,181 topics. Date: Saturday, 21 September 2024 at 06:55 PM

Web Design - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Web Design (318 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)

UK 7 Months Non Verified Adsense Account For Sale / Latest Free Forum Site That Could Pay Members According To Performance / Web Design And Apps Development

(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 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.