Hallo, wie bekomme ich die Navigation (Menue links) aus diesem Beisppiel nach rechts ???
No.1 :: CSS Template :: XTML 1.0 Transitional
No.1 :: CSS Template :: XTML 1.0 Transitional
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unbenanntes Dokument</title>
</head>
<body>
<table width="1024" height="499" border="0">
<tr>
<th width="320" height="500" valign="top" scope="col"><table width="320" height="497" border="1">
<tr>
<th scope="col"> </th>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></th>
<th scope="col"> </th>
<th width="320" height="500" valign="top" scope="col"><table width="320" height="495" border="1">
<tr>
<th scope="col"> </th>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></th>
</tr>
</table>
</body>
</html>
warum soll das nicht klappen???einfach das float: left; auf float: right; zu ändern klappt nicht.
<ul class="menue">
<li> <a href="###.html"> link1 </a> </li>
<li> <a href="###.html"> link2 </a> </li>
<li> <a href="###.html"> link3 </a> </li>
<li> <a href="###.html"> link4 </a> </li>
</ul>
.menue{
list-style-type:none;
display:block;
float:right;
border:1px solid #000000;
color:#000000;
}
.menue li a{
width:150px;
height:25px;
background-image:url(dein bild.jpg);
}
Das ist ein gutes Beispiel, warum man auf strikte Trennung von Inhalt und Layout achten sollte und auch ID/Klassennamen nicht nach Layout-/Designinformationen benennen sollte, sondern eine semantische Bedeutung.Dem #left musst du ein "float: right;" geben: