Verfasst: 14.12.2005 15:10
jo danke, hatte problem schon gelöst
selber rumprobieren hilft, sry 
das passt jetz egtl ganz gut, aber dennoch:
wie mache ich es dass das alles ned so weit nach rechts einrückt bei dem mouseover?
so das prob hätt ich auch gelöst, schaut es euch doch einfach an


das passt jetz egtl ganz gut, aber dennoch:
wie mache ich es dass das alles ned so weit nach rechts einrückt bei dem mouseover?
so das prob hätt ich auch gelöst, schaut es euch doch einfach an

Code: Alles auswählen
<?php header('Content-Language: en'); ?>
<!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" xml:lang="en" lang="en">
<head>
<title>CSS Navigation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}
if (d) {d.style.display='block';}
}
//-->
</script>
<style type="text/css">
<!--
dl, dt, dd, ul, li {
margin: 0;
padding: 0;
list-style-type: none;
}
#menu {
background: transparent url(images/list-off.gif) left center no-repeat;
padding-left: 15px;
text-align: left;
font: normal 11px "tahoma";
text-decoration: none;
color: #c3c3c3c3;
}
dl#menu {
width: 15em;
}
dl#menu dt {
cursor: pointer;
margin: 2px 0;;
height: 20px;
line-height: 20px;
text-align: left;
}
dl#menu dd {
}
dl#menu li {
text-align: left;
color: #CC0000;
}
dl#menu li a, dl#menu dt a {
background: transparent url(images/list-off.gif) left center no-repeat;
padding-left: 15px;
text-align: left;
font: normal 11px "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, sans-serif;
text-decoration: none;
color: #999;
}
dl#menu li a:hover, dl#menu dt a:hover {
background: transparent url(images/list-on.gif) left center no-repeat;
color: black;
}
#mentions {
font-family: verdana, arial, sans-serif;
position: left;
bottom : 200px;
left : 1px;
color: #000;
background-color: #ddd;
}
#mentions a {text-decoration: none;
color: #222;
}
#mentions a:hover{text-decoration: underline;
}
#navcontainer ul
{
list-style-type: none;
text-align: left;
}
#navcontainer ul li a
{
background: transparent url(images/list-off.gif) left center no-repeat;
padding-left: 15px;
text-align: left;
font: normal 11px "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, sans-serif;
text-decoration: none;
color: #999;
}
#navcontainer ul li a:hover
{
background: transparent url(images/list-on.gif) left center no-repeat;
color: black;
}
#navcontainer ul li a#current
{
background: transparent url(images/list-active.gif) left center no-repeat;
color: #666;
}
.Stil1 {color: #CC0000}
-->
</style>
</head>
<body>
<div id="navcontainer">
<ul id="navlist">
<dl id="menu">
<dt onmouseover="javascript:montre('smenu1');"><span class="Stil1">></span> home</dt>
<dd id="smenu1">
<ul>
<li><a href="#">>> index1</a></li>
<li><a href="#">>> index2</a></li>
</ul>
</dd>
<dt onmouseover="javascript:montre('smenu2');"><span class="Stil1">></span> news</dt>
<dd id="smenu2">
<ul>
<li><a href="#">>> latest</a></li>
<li><a href="#">>> archive</a></li>
</ul>
</dd>
<dt onmouseover="javascript:montre('smenu3');"><span class="Stil1">></span> interactive</dt>
<dd id="smenu3">
<ul>
<li><a href="#">>> forum</a></li>
<li><a href="#">>> guestbook</a></li>
</ul>
</dd>
<dt onmouseover="javascript:montre('smenu4');"><span class="Stil1">></span> webdesign</dt>
<dd id="smenu4">
<ul>
<li><a href="#">>> flash</a></li>
<li><a href="#">>> html</a></li>
</ul>
</dd>
</dl>
</ul>
</div>
</body>
</html>