DaviciiDotcom
Neues Mitglied
Wie implementiere ich in folgendes Menü ein Untermenü (Submenü), damit, wenn der Nutzer darüber streicht es aufgeht und sich schließt wenn er wegfährt.
MfG Davicii
Code:
<html>
<head>
<title>Web Development</title>
<style type="text/css">
ul#Navigation {
margin: 0; padding: 0.8em;
text-align: center;
background-color: 2b2b2b;
}
ul#Navigation li {
list-style: none;
display: inline;
margin: 0.4em; padding: 0;
}
ul#Navigation a, ul#Navigation span {
padding: 0.2em 1em;
font-family: Arial;
text-decoration: none; font-weight: bold;
color: white; background-color: #2b2b2b;
}
* html ul#Navigation a, * html ul#Navigation span {
width: 1em;
width: auto;
}
ul#Navigation a:hover, ul#Navigation span {
border-color: white;
border-left-color: black; border-top-color: black;
color: white; background-color: gray;
</style>
</head>
<body>
<ul id="Navigation">
<li><a href="content.html" target="content">Home</a></li>
<li><a href="seite1.html" target="content">HTML Basics</a></li>
<li><a href="seite2.html" target="content">HTML Pro</a></li>
<li><a href="seite3.html" target="content">CSS Basics</a></li>
<li><a href="seite4.html" target="content">CSS Pro</a></li>
</ul>
</body>
</html>
MfG Davicii