Hallo,
ich hab ein div "box"
In diesem befinden sich wieder 3 Stk.
- "boxtop"
- "boxcontent"
- "boxfooter"
wenn ich aber in dem boxcontent eine liste platziere, dann macht der einen abstand von "boxtop" zu "boxcontent" und von "boxcontent" zu "boxfooter".
Beispiel:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
.box {
width:200px;
height:auto;
}
.boxtop, .boxbottom {
width:200px;
height:50px;
background-color:red;
}
.boxcontent {
width:200px;
height:auto;
background-color:green;
overflow:visible;
}
.boxcontent ul{
margin:0;
padding:0;
list-style:none;
}
.boxcontent li{
display:block;
width:200px;
background-color:yellow;
padding:10px 0;
margin:10px 0;
}
</style>
</head>
<body>
<div class="box">
<div class="boxtop">Kategorien</div>
<div class="boxcontent">
<ul>
<li>Quads</li>
<li>Crossbikes</li>
<li>Enduros</li>
<li>Buggys</li>
</ul>
</div>
<div class="boxbottom"></div>
</div>
</body>
</html>