Die sind doch in einer Reihe?!
Nabend,
kann mir jemand sagen, wie ich die Formelemente in eine Riehe bekommen?
https://www.ssl-id.de/ichbinmusiker.de/form.php
Vielen Dank!Code:<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Unbenanntes Dokument</title> <style type="text/css"> <!-- #formContainer { position: relative; width: 400px; height: 40px; background-color: #99CC66; } #formLogin { height: 22px; width: 400px; position: absolute; top: 9px; left: 0px; background-color: #FFCCFF; } #formLogin ul { margin: 0px; padding: 0px; list-style-type: none; } #formLogin li { padding: 0px; display: inline; margin: 0px; } #formLogin input { background-color: #4F4F4F; padding: 0px; border: 1px solid #00CCCC; color: #CCCCCC; height: 20px; } .loginButton { background: url("_fireworks/layout/loginButton.png") 0% 50%; width: 22px; height: 22px; border: none; } --> </style> </head> <body> <div id="formContainer"> <form id="formLogin" name="formLogin" method="post" action=""> <input name="username" type="text" id="username" value="Benutzername" /> <input name="pasword" type="password" id="pasword" value="Passwort" /> <input name="loginButton" type="submit" id="loginButton" value=" " class="loginButton" /> </form> </div> </body> </html>
derDenis
Die sind doch in einer Reihe?!
Grüße vom Griechen,
Cybergreek!
everygain Translator - eine Firefox-Erweiterung, damit der Grieche Euch besser versteht
horizontal ausgerichtet :-)
Also die Formelemente jedes Formulars sind horizontal nebeneinander.
Möchtest Du alle Formulare nebeneinander? Dann floate sie am besten.
Beispiel:
Ist zwar nicht valide, sollte aber als Anschauungsmaterial reichen.HTML-Code:<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Unbenanntes Dokument</title> <style type="text/css"> <!-- #formLogin { float: left; } #formTest { float: left; } #form2 { float: left; } .clearer { clear: both; } --> </style> </head> <body> <form id="formLogin" name="formLogin" method="post" action=""> <input name="username" type="text" id="username" value="Benutzername" /> <input name="pasword" type="password" id="pasword" value="Passwort" /> <input name="loginButton" type="submit" id="loginButton" value=" " class="loginButton" /> </form> <form id="formTest" method="post" action=""> <input name="textfield" type="text" class="input" id="textfield" /> <input name="textfield2" type="text" class="input" id="textfield2" /> </form> <form id="form2" method="post" action=""> <input name="textfield3" type="text" class="input" id="textfield3" /> <input name="textfield4" type="text" class="input" id="textfield4" /> </form> <div class="clearer"></div> </body> </html>![]()
Moin zusammen,
ich möchte nicht alle Formulare nebeneinander, ich möchte, das das Formular, egal welches horizontal und dieses dann vertikal ausgerichtet ist.
So wie die Logins in facebook und wer-kennt-wen.
Und jetzt war ich so fuchsig und habe mir das CSS dort mal angesehen :-)
Hätte ich gleich drauf kommen können :-)
Besten Dank für eure Tipps,
Denis
Dann poste doch mal eben für die Nachwelt auch ein paar Schnipsel, wenn du so lieb wärest![]()
Chaos ist nur eine andere Definition von Ordnung.
Ich schaue doch noch :-)
Aber da wird auch satt gefloated! Und irgendwie sieht es sehr chaotisch aus :-)
Wenn ichs habe, poste ich mein Ergebnis.
.. bei facebook und wer-kennt-wen stehen label und input untereinander. Also so:
Ich nehme an, das will er erreichen^^Code:label1 label2 label3 inputfeld1 inputfeld2 inputfeld3
Facebook nimmt dafür ne Tabelle .. wer-kennt-wen packt um jeden "Block" ein div. Im obigen Beispiel also 3 Stück. Und die kann man dann floaten.
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)