hallo ich bin gerade bei dem abschnitt steuerung horizuntal.
jetzt habe ich das float eingesetzt und es funktioniert irgentwie nicht.
hier ist die html:
<!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="de" lang="de">
<head>
<title>index2.htm</title>
<link href="design.css" type="text/css" rel="stylesheet" media="screen" />
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<meta name="generator" content="Webocton - Scriptly" />
</head>
<body>
<div id="navi">
<ul>
<li><a href="index.htm">Startseite</a></li>
<li><a href="ueber-mich.htm">Über mich</a></li>
<li><a href="termine.htm">Termine</a></li>
<li><a href="impressum.htm">Impressum</a></li>
</ul>
</div>
</body>
</html>
UND HIER DIE CSS:
#navi {
width:200px;
text-align:left;
margin-top:10px;
margin-bottom:10px;
margin-right:15px;
margin-left:20px;
}
#navi ul {
list-style:none;
}
#navi li {
float:left;
margin-left:15px;
width:90px;
background-color:silver;
border-top:1px black solid;
border-left:25px orange solid;
border-bottom:1px red solid;
border-right:2px blue solid;
margin-top:10px;
padding-top:8px;
padding-bottom:8px;
padding-left:8px;
padding-right:8px; }
Danke für die hilfe schonmal