hallo leute,
hab ich folgende problem: ich habe meine navigationstasten mithilfe von lists erstellt. jetzt will ich dass " li " elemente verschieden grossen haben. mit tabellen kann ich dass sehr leicht machen aber mit lists klappt es nicht. hier ist mein cod mit tabellen (so will ich es haben) und mit lists:
<style type="text/css">
<!--
#button {
width: 205px;
position: absolute;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
left: 300px;
top: 20px;
height: 144px;
}
#button ul {
list-style-type: none;
padding: 0px;
position: absolute;
top: 0px;
width: 100%;
}
#button li {
height: 25px;
list-style-type: none;
width: 200px;
padding: 0px;
border: 1px solid #999;
}
-->
</style>
</head>
<body>
<table width="200" border="1" cellspacing="0" cellpadding="0"> <tr> <td height="40">Categorie1</td> </tr> <tr> <td height="25"><a href="#">Beispieltext1</a></td> </tr> <tr><td height="25"><a href="#">Beispieltext2</a></td></tr><tr><td height="40">Categorie2</td></tr><tr> <td height="25"><a href="#">Beispieltext3</a></td> </tr> </table>
<div id="button">
<ul >
<li>Categorie</a></li>
<li><a href="#">Beispieltext1</a></li>
<li><a href="#">Beispieltext2</a></li>
<li>Categorie2</li>
<li><a href="#">Beispieltext3</a></li>
</ul>
</div>
mfg
hab ich folgende problem: ich habe meine navigationstasten mithilfe von lists erstellt. jetzt will ich dass " li " elemente verschieden grossen haben. mit tabellen kann ich dass sehr leicht machen aber mit lists klappt es nicht. hier ist mein cod mit tabellen (so will ich es haben) und mit lists:
<style type="text/css">
<!--
#button {
width: 205px;
position: absolute;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
left: 300px;
top: 20px;
height: 144px;
}
#button ul {
list-style-type: none;
padding: 0px;
position: absolute;
top: 0px;
width: 100%;
}
#button li {
height: 25px;
list-style-type: none;
width: 200px;
padding: 0px;
border: 1px solid #999;
}
-->
</style>
</head>
<body>
<table width="200" border="1" cellspacing="0" cellpadding="0"> <tr> <td height="40">Categorie1</td> </tr> <tr> <td height="25"><a href="#">Beispieltext1</a></td> </tr> <tr><td height="25"><a href="#">Beispieltext2</a></td></tr><tr><td height="40">Categorie2</td></tr><tr> <td height="25"><a href="#">Beispieltext3</a></td> </tr> </table>
<div id="button">
<ul >
<li>Categorie</a></li>
<li><a href="#">Beispieltext1</a></li>
<li><a href="#">Beispieltext2</a></li>
<li>Categorie2</li>
<li><a href="#">Beispieltext3</a></li>
</ul>
</div>
mfg