Supportnet Computer
Planet of Tech

Supportnet / Forum / Webseiten/HTML

rechts neben navigation schreiben ?





Frage

hi also da vo meine navi leiste ist kann ich rechts daneben nicht schreiebn :-( wieso ? [url]http://www.nord-com.net/mark.guese/[/url] _______________________ <body bgcolor="#F5F5F5"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Navigationsleisten</title> <style type="text/css"> <ul id="Navigation"> <li><a href="nav_definieren.htm">Beispiel 1</a></li> <li><a href="nav_formatieren.htm">Beispiel 2</a></li> <li><a href="nav_rollover.htm">Beispiel 3</a></li> </ul> </body> </html> ul#Navigation { width: 10em; margin: 0; padding: 0.8em; border: 1px solid black; background-color: silver; } * html ul#Navigation { /* Korrekturen fuer IE 5.x */ width: 11.6em; w\idth: 10em; padding-left: 0; padd\ing-left: 0.8em; } ul#Navigation li { list-style: none; margin: 0.4em; padding: 0; } ul#Navigation a { display:block; padding: 0.2em; text-decoration: none; font-weight: bold; border: 1px solid black; border-left-color: white; border-top-color: white; color: maroon; background-color: #ccc; } * html ul#Navigation a { /* Breitenangaben nur fuer IE */ width: 100%; w\idth: 8.8em; } ul#Navigation a:hover { border-color: white; border-left-color: black; border-top-color: black; color: white; background-color: gray; } </style> </head> <body bgcolor="#F5F5F5"> <h1 align="center"><img border="0" src="LOGO.jpg" width="230" height="149"></h1> <hr color="#804000" size="10" align="left" width="80%"> <hr color="#C0C0C0" size="10" align="right" width="80%"> <h1>&nbsp;</h1> <ul id="Navigation"> <li> <p align="center"><a href="nav_definieren.htm">&nbsp;&nbsp; Home</a></li> <li> <p align="center"><a href="nav_formatieren.htm">Vorteile</a></li> <li> <p align="center"><a href="nav_rollover.htm">Postfach</a></li> <li> <p align="center"><a href="nav_rollover.htm">Hol und Weg</a></li> <li> <p align="center"><a href="nav_rollover.htm">Hausbankservice</a></li> <li> <p align="center"><a href="nav_definieren.htm">Frankier</a></li> <li> <p align="center"><a href="nav_formatieren.htm">Preise</a></li> <li> <p align="center"><a href="nav_rollover.htm">Zustellgebiete</a></li> <li> <p align="center"><a href="nav_rollover.htm">Kontakt</a></li> <li> <p align="center"><a href="nav_rollover.htm">Impressum</a></li> <li> <p align="center">&nbsp;</li> <li>&nbsp;</li> </ul> </body> </html> </body> </html>

Antwort 1 von DeluxeStyle

tja, ich würde erst mal deinen Quellcode genau anschauen
Da ist ja alles falsch, was falsch sein kann

siehe selfHTML

Antwort 2 von Chriz

ich schaue und suche aber mhh nichts ,,,,,,

Antwort 3 von Chriz

:..-( H E L P

Antwort 4 von DeluxeStyle

<body bgcolor="#F5F5F5">
darf ned vor dem Doctype stehen


<ul id="Navigation">
<li><a href="nav_definieren.htm">Beispiel 1</a></li>
<li><a href="nav_formatieren.htm">Beispiel 2</a></li>
<li><a href="nav_rollover.htm">Beispiel 3</a></li>
</ul>

das darf nicht im style abschnitt stehen

Antwort 5 von Chriz

ja hab ich geändert ....aber ich kann immer noch nicht rechts daneben schreiben ... :-( ...

Antwort 6 von DeluxeStyle

so, wie willst du den jetzt rechts daneben schreiben?
wie hast du das gemacht oder versucht?

Antwort 7 von DeluxeStyle

außerdem hast du noch ein
</body>
</html>
in deinem style tag

Antwort 8 von kicia

Du solltest wirklich den Code nochmal Zeile für Zeile durchgehen und bereinigen.

Nebeneinander schreiben kann man zB. mit einer Tabelle:
<html>
	<head>
		<title> ... </title>
		<style> td { vertical-align:top; } </style>
	</head>
	<body>
		<table>
			<tr>
				<td>Menü 1<br>Menü 2<br>Menü 3</td>
				<td>anderer Inhalt</td>
			</tr>
		</table>
	</body>
</html>


Antwort 9 von rfb

Zitat:
Nebeneinander schreiben kann man zB. mit einer Tabelle:
aber sowas sollte trotzdem nicht mehr gemacht werden, das ist Layouten aus der Steinzeit.

Um Blockelemente nebeneinander zu legen genügt eine Kombination der CSS-Eigenschaften
width
(Breite) und
float
(fließen)
Dies setzt allerdings fehlerfreies HTML voraus und davon ist die Seite noch weit weg.

Antwort 10 von Chriz

so jetzt ein bissl aufgeräumt

__________________________________


<!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" />
<meta name="author" content="M.Güse">
<title>ALLEGRO-POSTA</title>

<style type="text/css">
<!--

body{
background-color: #F5F5F5;
font-size: 100%;
}
*body{ font-size: 80%;}

ul#Navigation {
width: 10em;
margin: 0; padding: 0.8em;
border: 1px solid black;
background-color: silver;
}
* html ul#Navigation { /* Korrekturen fuer IE 5.x */
width: 11.6em;
w\idth: 10em;
padding-left: 0;
padd\ing-left: 0.8em;
}
ul#Navigation li {
list-style: none;
margin: 0.4em; padding: 0;
}

ul#Navigation a {
display:block;
padding: 0.2em;
text-decoration: none; font-weight: bold;
border: 1px solid black;
border-left-color: white; border-top-color: white;
color: maroon; background-color: #ccc;
}
* html ul#Navigation a { /* Breitenangaben nur fuer IE */
width: 100%;
w\idth: 8.8em;
}
ul#Navigation a:hover {
border-color: white;
border-left-color: black; border-top-color: black;
color: white; background-color: gray;
}
-->
</style>

</head>

<body>

<h1 align="center"><img border="0" src="LOGO.jpg" width="230" height="149"></h1>

<hr color="#804000" size="10" align="left" width="80%">
<hr color="#C0C0C0" size="10" align="right" width="80%">

<ul id="Navigation">
<li><a href="Home.html">Home</a></li>
<li><a href="Vorteile.html">Vorteile</a></li>
<li><a href="Postfach.html">Postfachservice</a></li>
<li><a href="Hol und Weg.html">Hol- und Wegservice</a></li>
<li><a href="Hausbankservice.html">Hausbankservice</a></li>
<li><a href="Frankier.html">Frankierservice</a></li>
<li><a href="Preise.html">Preise</a></li>
<li><a href="Zustellgebiete.html">Zustellgebiete</a></li>
<li><a href="Kontakt.html">Kontakt</a></li>
<li><a href="Impressum.html">Impressum</a></li>
<li>&nbsp;</li>
<li>&nbsp;</li>
</ul>

</body>

</html>



aber ich kann immer noch nichts rechts auf der weissen freien ffläche schreiben ... :-(

Antwort 11 von rfb

Schon mal Antwort 9 2ter Absatz gelesen? Nö? Dann musst du dich nicht wundern.