HTML CSS Menü Sorunu |
11 Mesajlar | 1.978 Okunma |
#ustmenu {
background-color: #333333;
height: 58px;
margin: 20px 0px 0px 0px;
left: 0;
right: 0;
position: absolute;
}
#ustmenu ul {
width: 960px;
margin: 20px auto 20px;
color: #366066;
}
#ustmenu ul li{
list-style:none;
float:left;
padding: 0px 10px;
}
#ustmenu ul li a{
display:block;
line-height:15px;
text-decoration: none;
color: #fff;
}
#ustmenu ul li a:hover{
background: #f00;
}
#ustmenu {
background-color: #333333;
height: 58px;
margin: 20px 0px 0px 0px;
left: 0;
right: 0;
position: absolute;
}
#ustmenu ul {
width: 960px;
margin-top:0px;
color: #366066;
}
#ustmenu ul li{
list-style:none;
float:left;
padding: 0px 10px;
}
#ustmenu ul li a{
display:block;
padding:19px 10px ;
text-decoration: none;
color: #fff;
}
#ustmenu ul li a:hover{
background: #f00;
padding:19px 10px ;
}
mustafanart adlı üyeden alıntı
Dediğim gibi a'ya hover vermek yerine li'ye hover verin;#ustmenu ul li a:hover{
background: #f00;
}
#ustmenu {
background-color: #2D313C;
height: 58px;
margin: 20px 0px 0px 0px;
left: 0;
right: 0;
width: 100%;
position: absolute;
}
#ustmenu ul {
width: 960px;
margin: 20px auto 20px;
color: #366066;
}
#ustmenu ul li{
list-style:none;
float:left;
padding: 0px 10px;
}
#ustmenu ul li a{
display:block;
line-height:15px;
text-decoration: none;
color: #fff;
}
#ustmenu ul li a:hover{
color: #f00;
}
#ustmenu {
background-color: #333333;
height: 58px;
left: 0;
right: 0;
position: absolute;
}
#ustmenu ul {
margin:0 auto;
width: 960px;
height: 58px;
color: #366066;
}
#ustmenu ul li{
list-style:none;
height: 58px;
float:left;
padding: 0px 10px;
}
#ustmenu ul li a{
display:block;
line-height:58px;
text-decoration: none;
color: #fff;
}
#ustmenu ul li:hover{
background: #f00;
}