Hi, zrobiłem pierwszy moj szablon w xhtml:
  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" lang="pl">
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  4. <title>instalacja</title>
  5. <meta name="keywords" content="" />
  6. <meta name="description" content="" />
  7. <style type="text/css">
  8. body {
  9. padding: 0;
  10. margin: 0;
  11. overflow: auto;
  12. }
  13. div {
  14. font: 13px "trebuchet ms", helvetica, sans-serif;
  15. color: #585858;
  16. }
  17.  
  18. a { text-decoration: none; color: #000; font: 12px tahoma, verdana, arial, sans-serif; }
  19. a:hover { text-decoration: underline; color: #575757; font: 12px tahoma, verdana, arial, sans-serif; }
  20. img {vertical-align: middle; border: 0px; }
  21.  
  22. h1,h2,h3,h4,h5,h6
  23. {
  24. font-weight: normal;
  25. letter-spacing: -1px;
  26. text-transform: lowercase;
  27. padding: 0;
  28. margin: 0;
  29. }
  30.  
  31. h3,h4,h5,h6
  32. {
  33. color: #184366;
  34. }
  35.  
  36. #page {
  37. width: 980px;
  38. border: 0px solid #000;
  39. display: table;
  40. margin: 0 auto;
  41. }
  42. #header {
  43. border-left: 1px solid #000;
  44. border-right: 1px solid #000;
  45. display: block;
  46. width: 230px;
  47. overflow: hidden;
  48. float: left;
  49. margin-left: 10px;
  50. padding: 10px;
  51. }
  52.  
  53. #header2 {
  54. border-right: 1px solid #000;
  55. display: block;
  56. width: 230px;
  57. overflow: hidden;
  58. float: left;
  59. margin-left: 10px;
  60. padding: 10px;
  61. }
  62.  
  63. #header3 {
  64. border-left: 1px solid #000;
  65. display: block;
  66. width: 434px;
  67. overflow: hidden;
  68. float: left;
  69. padding: 10px;
  70. }
  71.  
  72. .form_div1 {
  73. width: 100px;
  74. float: left;
  75. }
  76.  
  77. .form_div2 {
  78. }
  79.  
  80.  
  81. </head>
  82. <div id="page">
  83. <div id="header3">
  84.  
  85.  
  86. <form method="post" action="index.php?id=step1">
  87.  
  88. <div class="form_div1">Host</div><div class="form_div2"><input type="text" value="localhost" name="host" maxlength="50" style="width: 220px;" /></div>
  89. <div class="form_div1">Baza</div><div class="form_div2"><input type="text" name="database" maxlength="50" style="width: 220px;" /></div>
  90. <div class="form_div1">Utwórz baze</div><div class="form_div2"><input type="checkbox" name="db_create" /></div>
  91. <div class="form_div1">Użytkownik</div><div class="form_div2"><input type="text" name="user_db" maxlength="50" style="width: 220px;" /></div>
  92. <div class="form_div1">Hasło</div><div class="form_div2"><input type="password" name="pass_db" maxlength="50" style="width: 220px;" /></div>
  93. <div class="form_div1">Prefix</div><div class="form_div2"><input type="text" name="prefix" value="getCMS_" maxlength="50" style="width: 220px;" /></div>
  94. <div class="form_div1">Język</div><div class="form_div2"><select name="lang"><option selected>pl</option></select></div>
  95. <div class="form_div1">&nbsp;</div><div class="form_div2"><input type="submit" value="&raquo; next step" class="submit" name="save" /></div>
  96. </form>
  97.  
  98. </div>
  99. <div id="header">
  100. ln_inst_step1</div>
  101. <div id="header2">
  102. <span style="color: red">etap 1 - połączenie z bazą</span><br /><br />etap 2 - zapisanie ustawień i nawiązanie połączenia z bazą<br /><br />etap 3 - wgranie tabel do bazy mysql<br /><br />etap 4 - utworzenie konta administratora<br /><br />etap 5 - zakończenie instalacji<br /><br /></div>
  103. </div>
  104.  
  105. </body>
  106. </html>


Jeżeli wyrzucę <option> to układ wraca do poprzedniego stanu, nie wiem dlaczego sie tak dzieje?
Prosze też o ocenę tego szablonu, bo nie wiem czy dobrze go stworzyłem.

Już sobie poradziłem trzeba było wywalić display: table z #page