drop down in menü einbauen

Status
Nicht offen für weitere Antworten.

son gohan

Erfahrenes Mitglied
Hallo, ich wollte gerne eine Drop Domw MEnü in eine Css Menü einbauen, bei http://www.stunicholls.myby.co.uk/menus/definition.html ist das menüs welches ich nehmen will. Und auch das Drop Dowm ist dort ma Start http://www.stunicholls.myby.co.uk/menus/dropdown.html.

Wenn jemand über ein Wort fährt im menü soll sich ein Drop Down menü öfnen, wer kann mir mein Beispiel korrigieren?

HTML:
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<head>
<style type="text/css">
body {font-size:1%; color:#fff; background-image: url(b1.jpg);} /*get rid of the IE bug that prints the the end of the !doctype */
#rightmenu
{
width: 140px;
margin: 0px;
padding:0px;
text-align: left;
}
#rightmenu a
{
font-family: arial;
font-size: 12px;
width: 140px;
display: block;
background-image: url(menu1.png);
height:24px;
}
#rightmenu a:link, #rightmenu a:visited
{
font-family: arial;
font-size: 12px;
height:24px;
}
#rightmenu a:link.active, #rightmenu a:visited.active
{
font-family: arial;
font-size: 12px;
height:24px;
}
#rightmenu a:hover
{
font-family: arial;
font-size: 12px;
background-image: url(menu1.png);
height:24px;
}
.obenunten { border-bottom:1px solid #FFFFFF;
border-top:1px solid #FFFFFF;  }
.unten { border-bottom:1px solid #FFFFFF;  }
.oben { border-top:1px solid #FFFFFF;  }

.menu {display:none;}
.holder { color:#FFFFFF; width:140px; height:24px; display:block;background-image: url(menu1.png);  border:0px solid #000; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:tahoma, vardana, arial, sans-serif; font-size:10px; line-height:24px; overflow:hidden;}
.holder:hover { border:3px solid #FFFF00; height:auto; cursor:pointer;color:#fff; background-image: url(menu1.png); }
a.inner, a.inner:visited {display:block; width:140px; height:24px; border-bottom:1px solid #000; text-decoration:none; color:#000; background-image: url(menu1.jpg);  }
a.inner:hover { background-image: url(menu2.jpg);   }
p { color:#000; font-size:16px;}
</style>
<!--[if IE]>
   <style type="text/css">
   /*<![CDATA[*/
.holder {display:none;}
.menu {display:block;}
a.outer, a.outer:visited { color:#FFFFFF; width:140px; height:24px; display:block; background-image: url(menu1.png);  border:0px solid #000; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:tahoma, vardana, arial, sans-serif; font-size:10px; line-height:24px; overflow:hidden;}
a.outer:hover {color:#fff; border:3px solid #FFFF00; background-image: url(menu1.png); overflow:visible;}
a.outer:hover table {display:block; border-collapse:collapse;}
a.inner, a.inner:visited {display:block; width:140px; height:24px; border-bottom:1px solid #FFFFFF; text-decoration:none; color:#000;font-family:tahoma, vardana, arial, sans-serif; font-size:10px; text-align:center;}
a.inner:hover { background-image: url(menu2.jpg); }
   /*]]>*/
   </style>
<![endif]-->
</head>
<body>
 
 
<div id="rightmenu">
 
<img style="border-bottom: 0px solid #FFFFFF;margin:0px;padding:0px;" src="menu.jpg" width="142" height="36" border="0" alt="">
<div class="menu">
<a class="outer" href="page1.html">MENU 1
<table><tr><td>
<a class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</td></tr></table>
</a>
</div>
<div class="menu">
<a class="outer" href="page1.html">MENU 1
<table><tr><td>
<a class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</td></tr></table>
</a>
</div>
<div class="holder">
MENU 1<br>
<a class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</div>
<div class="holder">
MENU 1<br>
<a class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</div>
<div class="menu"><a class="outer" href="page1.html">MENU 1</div>
<div class="holder">MENU 1<br></div>

 

</body>
</html>

gruß
feh
 
Hallo, ich habe das menü jetzt irgendwie etwas zusammengebaut. Aber im IE sieht es etwas anders aus, gut man kann bei einem solchen komplexen Bau auch nicht zuviel erwaten, aber folgendes, beim IE steht etwas mehr rand rechts weck als bei den anderen Brwosern, wenn man über ein Link fährt, ich konnte nichts finden, aber vielleicht ein erfahrener Profi von euch?

Der Code:
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
 
<head>
<title>menu</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
 
<style type="text/css">
body {font-size:1%; color:#fff; background-image: url(b1.jpg);} /*get rid of the IE bug that prints the the end of the !doctype */
A:link {
text-decoration : none;
color : #FFFFFF;
font-size : 12px;
font-family : arial, verdana, sans, sans-serif;
}
A:visited {
text-decoration : none;
color :#FFFFFF;
font-size : 12px;
font-family : arial, verdana, sans-serif;
}
A:active {
text-decoration : none;
color : #FFFFFF;
font-size : 12px;
font-family : arial, verdana, sans-serif;
}
A:hover {
text-decoration : none;
color : #FFFFFF;
font-size : 12px;
font-family : arial, verdana, sans-serif;
}
#rightmenu
{
width: 140px;
margin: 0px;
padding:0px;
text-align: left;
}
#rightmenu a
{
font-family: arial;
font-size: 12px;
width: 140px;
display: block;
height:24px;
}
#rightmenu a:link, #rightmenu a:visited
{
font-family: arial;
font-size: 12px;
height:24px;
}
#rightmenu a:link.active, #rightmenu a:visited.active
{
font-family: arial;
font-size: 12px;
height:24px;
}
#rightmenu a:hover
{
font-family: arial;
font-size: 12px;
height:24px;
}
.menu {display:none;}
.mholder { color:#FFFFFF; width:140px; height:24px; display:block; background-image: url(menu1.jpg); border-top:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:arial, sans-serif, tahoma, vardana; font-size:12px; line-height:24px; overflow:hidden;}
.mholder:hover { border-top:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF; height:auto; cursor:pointer;color:#fff; background-image: url(menu2.jpg); }
.holder { color:#FFFFFF; width:140px; border-top:1px solid #FFFFFF; height:24px; display:block; background-image: url(menu1.jpg); margin-right:1px; text-align:left; float:left; text-decoration:none; font-family:arial, sans-serif, tahoma, vardana; font-size:12px; line-height:24px; overflow:hidden;}
.holder:hover { border-bottom:3px solid #FFDF00; height:auto; cursor:pointer;color:#FFFFFF; background-image: url(menu4.jpg); }
a.inner, a.inner:visited {display:block; width:140px; height:24px; border-bottom:1px solid #FFFFFF; text-decoration:none; color:#FFFFFF; background-image: url(menu1.jpg); }
a.inner:hover { background-image: url(menu2.jpg); }
</style>
<!--[if IE]>
<style type="text/css">
/*<![CDATA[*/
.holder {display:none;}
.mholder {display:none;}
.menu {display:block;}
a.mouter, a.outer:visited { border-top:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF; color:#FFFFFF; width:140px; height:24px; display:block; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:arial, sans-serif, tahoma, vardana; font-size:12px; line-height:24px; overflow:hidden; background-image: url(menu1.jpg); }
a.mouter:hover {color:#fff; background-image: url(menu2.jpg); overflow:visible;}
a.mouter:hover table {display:block; background-image: url(menu2.jpg); border-collapse:collapse;}
a.outer, a.outer:visited { border-top:1px solid #FFFFFF; color:#FFFFFF; width:140px; height:24px; display:block; background-image: url(menu1.jpg); margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:arial, sans-serif, tahoma, vardana; font-size:12px; line-height:24px; overflow:hidden;}
a.outer:hover {color:#fff; border-bottom:3px solid #FFDF00; background-image: url(menu4.jpg); overflow:visible;}
a.outer:hover table {display:block; border-collapse:collapse;}
a.inner, a.inner:visited {display:block; width:140px; height:24px; border-bottom:1px solid #FFFFFF; text-decoration:none; color:#FFFFFF;font-family:arial, sans-serif, tahoma, vardana; font-size:12px; text-align:center;}
a.inner:hover { background-image: url(menu2.jpg); }
/*]]>*/
</style>
<![endif]-->
</head>
<body>
 
<div id="rightmenu">
<img style="border-bottom: 0px solid #FFFFFF;margin:0px;padding:0px;" src="menu.jpg" width="140" height="36" border="0" alt="">
<div class="menu">
<a class="outer" href="page1.html">MENU 1
<table><tr><td>
<a style="border-top:1px solid #FFFFFF;" class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</td></tr></table>
</a>
</div>
<div class="menu">
<a class="outer" href="page1.html">MENU 1
<table><tr><td>
<a style="border-top:1px solid #FFFFFF;" class="inner" href="page1a.html">Page 1a</a>
<a class="inner" href="page1b.html">Page 1b</a>
<a class="inner" href="page1c.html">Page 1c</a>
<a class="inner" href="page1d.html">Page 1d</a>
<a class="inner" href="page1e.html">Page 1e</a>
</td></tr></table>
</a>
</div>
<div class="holder">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MENU 1<br>
<a style="border-top:1px solid #FFFFFF;" class="inner" href="page1a.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1a</a>
<a class="inner" href="page1b.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1b</a>
<a class="inner" href="page1c.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1c</a>
<a class="inner" href="page1d.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1d</a>
<a class="inner" href="page1e.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1e</a>
</div>
<div class="holder">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MENU 1<br>
<a style="border-top:1px solid #FFFFFF;" class="inner" href="page1a.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1a</a>
<a class="inner" href="page1b.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1b</a>
<a class="inner" href="page1c.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1c</a>
<a class="inner" href="page1d.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1d</a>
<a class="inner" href="page1e.html">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Page 1e</a>
</div>
<div class="mholder"><a href="">i</a></div>
<div class="menu"><a class="mouter" href="page1.html">MENU 1</a></div>
<img style="border-bottom: 0px solid #FFFFFF;margin:0px;padding:0px;" src="menuu.jpg" width="140" height="36" border="0" alt="">
</div><!--ende-->
 
</body>
</html>

Ach ja, da dieses menü eigentlich von mir alleine gepastelt wurde und somit meinem copyrihgt entsprechen würde, schenke ich hiermit jedem die Konstruktion und ... auf jedes Copyright das es gibt. Und mit dem Validator habe ich auch noch Probleme muss ich sagen.

gruß
feh
:)
 
Zuletzt bearbeitet:
Status
Nicht offen für weitere Antworten.
Zurück