Forse io ho trovato qualche problema con IE8, ne approfitto di questa discussione per sottoporlo e chiedervi un aiuto. Purtroppo io non ho IE8 ma mi dicono che su questo menù il risultato cambia, ecco il codice html:
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
menu.it
</title>
<link rel="stylesheet" href="menu.css" type="text/css" />
</head>
<body>
<div id="menu">
<ul class="menu1">
[*]UNO
[*]DUE
[*]TRE
[*]QUA
<li class="drop">QUI<table><tr><td>
<ul>
[*]QUI_1
[*]QUI_2
[*]QUI_3
[*]QUI_4
[/list]
</td></tr></table>
<li class="drop">SEX<table><tr><td>
<ul>
[*]SEX_1
[*]SEX_2
[*]SEX_3
[*]SEX_4
[*]SEX_5
[/list]
</td></tr></table>
<li class="drop">SET<table><tr><td>
<ul>
[*]SET_1
[*]SET_2
[*]SET_3
[*]SET_4
[*]SET_5
[*]SET_6
[/list]
</td></tr></table>
<li class="drop">OCT<table><tr><td>
<ul>
[*]OCT_1
[*]OCT_2
[*]OCT_3
[*]OCT_4
[/list]
</td></tr></table>
<li class="background">NOV
[/list]
</div>
</div>
</body>
</html>
ed ecco il foglio di stile:
codice:
ul.menu1, ul ul{
padding: 0;
margin: 0;
list-style-type: none;
height: 500px;
overflow: hidden;
width: 160px;
text-align: left;
color: #000;
}
ul.menu1{
margin: 10px 0 0 0;
font-size: 0.9em;
}
ul.menu1 table{
border-collapse:collapse;
padding:0;
margin:0;
font-size:1em;
}
ul.menu1 li{
text-indent:0.3em;
border-bottom: 1px solid #D7D7D7;
}
ul.menu1 li.drop {
margin-bottom:-2px;
}
ul.menu1 li a, ul.menu1 li a:visited{
display:block;
width: 160px;
height:1.8em;
line-height:1.7em;
text-decoration:none;
color:#000;
background: #FBFBFB;
}
ul.menu1 li a.last, ul.menu1 li a.last:visited{
display:block;
width: 160px;
height:14em;
line-height:1.8em;
border-bottom: none;
}
ul.menu1 li ul{
display:none;
}
ul.menu1 li:hover a, ul.menu1 li a:hover{
color:#000;
background: #E3E3E3;
font-weight: bold;
}
ul.menu1 li:hover ul, ul.menu1 li a:hover ul{
display: block;
height: 12em;
width: 160px;
}
ul.menu1 li:hover ul li a, ul.menu1 li a:hover ul li a{
height:1.8em;
background:#FBFBFB;
color:#000;
font-weight: normal;
}
ul.menu1 li:hover ul li:hover a, ul.menu1 li a:hover ul li a:hover{
background:#E3E3E3;
color:#000;
font-weight: bold;
}
ul.menu1 li.background a:hover{
background: url(../img/giornale_piccolo.jpg) no-repeat bottom center;
}
ul.menu1 li.background {
border: none;
}
questo menù l'ho rubato da cssplay , non gli ho dato un contributo come vorrebbe Steward Nichols ma appena ho due lire glielo darò...
Grazie per ogni aiuto, ciao