<input> + inline-css

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • <input> + inline-css

    Der Versuch, inline-CSS zu verwenden um ein Formular zu formatieren scheitert bei mir.

    HTML:

    Quellcode

    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
    3. <head>
    4. <link type="text/css" href="http://localhost/static/style.css" rel="stylesheet" />
    5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    6. <title>Anmeldung</title>
    7. <stlye type="text/css">
    8. <!--
    9. input {
    10. width:600px;
    11. }
    12. textarea {
    13. height:150px;
    14. }
    15. .test {
    16. width: 300px;
    17. height:150px;
    18. }
    19. -->
    20. </stlye>
    21. </head>
    22. <body>
    23. <div id="container">
    24. <div id="banner"></div>
    25. <div id="content">
    26. <h1>Registrierung</h1>
    27. <div id="text">
    28. <h3>Willkommen bei Criptic-Entertainment.</h3>
    29. <form action="http://5.175.167.36:8000/members/register/" method="POST" enctype="multipart/form-data">
    30. <table border="1">
    31. <tr><td colspan="2"><h4>Ihre Details</h4></td></tr>
    32. <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>
    33. <!--<tr style="display:none;"><td width="150">&nbsp;</td><td>&nbsp;</td></tr>-->
    34. <tr><th><label for="id_username">Dein Nick:</label></th><td><input type="text" name="username" id="id_username" /></td></tr>
    35. <tr><th><label for="id_password">Dein Passwort:</label></th><td><input type="password" name="password" id="id_password" /></td></tr>
    36. <tr><th><label for="id_password2">Passwort bestätigen:</label></th><td><input type="password" name="password2" id="id_password2" /></td></tr>
    37. <tr><th><label for="id_name">Dein Nachname:</label></th><td><input type="text" name="name" id="id_name" /></td></tr>
    38. <tr><th><label for="id_fname">Dein Vorname:</label></th><td><input type="text" name="fname" id="id_fname" /></td></tr>
    39. <tr><th><label for="id_mail">Deine Mailadresse:</label></th><td><input type="text" name="mail" id="id_mail" /></td></tr>
    40. <tr><th><label for="id_job">Dein Job:</label></th><td><select name="job" id="id_job">
    41. <option value="SP">Schauspieler</option>
    42. <option value="KA">Kameramann</option>
    43. <option value="SC">Schnitttechniker</option>
    44. <option value="TN">Tontechniker</option>
    45. <option value="GF">Grafiker</option>
    46. <option value="AT">Author</option>
    47. </select></td></tr>
    48. <tr><th><label for="id_ziele">Deine Ziele hier:</label></th><td><textarea name="ziele" id="id_ziele"></textarea></td></tr>
    49. <tr><th><label for="id_traumjob">Dein Traumjob:</label></th><td><input type="text" name="traumjob" id="id_traumjob" /></td></tr>
    50. <tr><th><label for="id_topmovies">Deine Lieblingsfilme:</label></th><td><textarea name="topmovies" id="id_topmovies"></textarea></td></tr>
    51. <tr><th><label for="id_topactor">Der beste Schauspieler:</label></th><td><input type="text" name="topactor" id="id_topactor" /></td></tr>
    52. <tr><th><label for="id_topactress">Die beste Schauspielerin:</label></th><td><input type="text" name="topactress" id="id_topactress" /></td></tr>
    53. <tr><th><label for="id_topregiseur">Der beste Regiseur:</label></th><td><input type="text" name="topregiseur" id="id_topregiseur" /></td></tr>
    54. <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>
    55. <tr><td><input style="width:120px;" type="submit"></td><td><input style="width:120px;" type="reset"></td></tr>
    56. </table>
    57. </form>
    58. </div>
    59. <div id="nav">
    60. <ul>
    61. <li><a href="/" class="anav">Home</a></li>
    62. </ul>
    63. </div>
    64. <div id="nav">
    65. <ul>
    66. <li><a href="/david" class="anav">Lore Ipsum</a></li>
    67. </ul>
    68. </div>
    69. </div>
    70. <br style="clear:both" />
    71. </div>
    72. </body>
    73. </html>
    Alles anzeigen


    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 ;)