Der Versuch, inline-CSS zu verwenden um ein Formular zu formatieren scheitert bei mir.
HTML:
Alles anzeigen
Schreibe ich die gleichen Daten ins verlinkte CSS-File funktioniert's wunderbar.
Sieht jemand den Fehler?
HTML:
Quellcode
- <!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>
- <link type="text/css" href="http://localhost/static/style.css" rel="stylesheet" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Anmeldung</title>
- <stlye type="text/css">
- <!--
- input {
- width:600px;
- }
- textarea {
- height:150px;
- }
- .test {
- width: 300px;
- height:150px;
- }
- -->
- </stlye>
- </head>
- <body>
- <div id="container">
- <div id="banner"></div>
- <div id="content">
- <h1>Registrierung</h1>
- <div id="text">
- <h3>Willkommen bei Criptic-Entertainment.</h3>
- <form action="http://5.175.167.36:8000/members/register/" method="POST" enctype="multipart/form-data">
- <table border="1">
- <tr><td colspan="2"><h4>Ihre Details</h4></td></tr>
- <tr><th width="300"><label for="file_in">Dein Bild:</label></th><td><input class="test" type="file" id="file_in" name="image" accept="image/*" /></td></tr>
- <!--<tr style="display:none;"><td width="150"> </td><td> </td></tr>-->
- <tr><th><label for="id_username">Dein Nick:</label></th><td><input type="text" name="username" id="id_username" /></td></tr>
- <tr><th><label for="id_password">Dein Passwort:</label></th><td><input type="password" name="password" id="id_password" /></td></tr>
- <tr><th><label for="id_password2">Passwort bestätigen:</label></th><td><input type="password" name="password2" id="id_password2" /></td></tr>
- <tr><th><label for="id_name">Dein Nachname:</label></th><td><input type="text" name="name" id="id_name" /></td></tr>
- <tr><th><label for="id_fname">Dein Vorname:</label></th><td><input type="text" name="fname" id="id_fname" /></td></tr>
- <tr><th><label for="id_mail">Deine Mailadresse:</label></th><td><input type="text" name="mail" id="id_mail" /></td></tr>
- <tr><th><label for="id_job">Dein Job:</label></th><td><select name="job" id="id_job">
- <option value="SP">Schauspieler</option>
- <option value="KA">Kameramann</option>
- <option value="SC">Schnitttechniker</option>
- <option value="TN">Tontechniker</option>
- <option value="GF">Grafiker</option>
- <option value="AT">Author</option>
- </select></td></tr>
- <tr><th><label for="id_ziele">Deine Ziele hier:</label></th><td><textarea name="ziele" id="id_ziele"></textarea></td></tr>
- <tr><th><label for="id_traumjob">Dein Traumjob:</label></th><td><input type="text" name="traumjob" id="id_traumjob" /></td></tr>
- <tr><th><label for="id_topmovies">Deine Lieblingsfilme:</label></th><td><textarea name="topmovies" id="id_topmovies"></textarea></td></tr>
- <tr><th><label for="id_topactor">Der beste Schauspieler:</label></th><td><input type="text" name="topactor" id="id_topactor" /></td></tr>
- <tr><th><label for="id_topactress">Die beste Schauspielerin:</label></th><td><input type="text" name="topactress" id="id_topactress" /></td></tr>
- <tr><th><label for="id_topregiseur">Der beste Regiseur:</label></th><td><input type="text" name="topregiseur" id="id_topregiseur" /></td></tr>
- <tr><th><label for="id_opinion">Wenn du einmal für einen Satz aufs Podium neben dem US-Präsidenten gerufen würdest vor 5 Mrd. Zuschauern,würdest du sagen:</label></th><td><textarea name="opinion" id="id_opinion"></textarea></td></tr>
- <tr><td><input style="width:120px;" type="submit"></td><td><input style="width:120px;" type="reset"></td></tr>
- </table>
- </form>
- </div>
- <div id="nav">
- <ul>
- <li><a href="/" class="anav">Home</a></li>
- </ul>
- </div>
- <div id="nav">
- <ul>
- <li><a href="/david" class="anav">Lore Ipsum</a></li>
- </ul>
- </div>
- </div>
- <br style="clear:both" />
- </div>
- </body>
- </html>
Schreibe ich die gleichen Daten ins verlinkte CSS-File funktioniert's wunderbar.
Sieht jemand den Fehler?
There are only 10 types of people in the world: Those who understand binary, and those who don't.
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen