css_practice_2.result.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Lists, Tables and Forms</title>
  5. <style type="text/css">
  6. body {
  7. font-family: Arial, Verdana, sans-serif;
  8. font-size: 90%;
  9. color: #666;
  10. background-color: #f8f8f8;
  11. }
  12. li {
  13. list-style-image: url("images/icon-plus.png");
  14. line-height: 1.6em;
  15. }
  16. table {
  17. border-spacing: 0px;
  18. }
  19. th, td {
  20. padding: 5px 30px 5px 10px;
  21. border-spacing: 0px;
  22. font-size: 90%;
  23. margin: 0px;
  24. }
  25. th, td {
  26. text-align: left;
  27. background-color: #e0e9f0;
  28. border-top: 1px solid #f1f8fe;
  29. border-bottom: 1px solid #cbd2d8;
  30. border-right: 1px solid #cbd2d8;
  31. }
  32. tr.head th {
  33. color: #fff;
  34. background-color: #90b4d6;
  35. border-bottom: 2px solid #547ca0;
  36. border-right: 1px solid #749abe;
  37. border-top: 1px solid #90b4d6;
  38. text-align: center;
  39. text-shadow: -1px -1px 1px #666666;
  40. letter-spacing: 0.15em;
  41. }
  42. td {
  43. text-shadow: 1px 1px 1px #ffffff;
  44. }
  45. tr.even td, tr.even th {
  46. background-color: #e8eff5;
  47. }
  48. tr.head th:first-child {
  49. -webkit-border-top-left-radius: 5px;
  50. -moz-border-radius-topleft: 5px;
  51. border-top-left-radius: 5px;
  52. }
  53. tr.head th:last-child {
  54. -webkit-border-top-right-radius: 5px;
  55. -moz-border-radius-topright: 5px;
  56. border-top-right-radius: 5px;
  57. }
  58. fieldset {
  59. width: 310px;
  60. margin-top: 20px;
  61. border: 1px solid #d6d6d6;
  62. background-color: #ffffff;
  63. line-height: 1.6em;
  64. }
  65. legend {
  66. font-style: italic;
  67. color: #666666;
  68. }
  69. input[type="text"] {
  70. width: 120px;
  71. border: 1px solid #d6d6d6;
  72. padding: 2px;
  73. outline: none;
  74. }
  75. input[type="text"]:focus, input[type="text"]:hover {
  76. background-color: #d0e2f0;
  77. border: 1px solid #999999;
  78. }
  79. input[type="submit"] {
  80. border: 1px solid #006633;
  81. background-color: #009966;
  82. color: #ffffff;
  83. border-radius: 5px;
  84. padding: 5px;
  85. margin-top: 10px;
  86. }
  87. input[type="submit"]:hover {
  88. border: 1px solid #006633;
  89. background-color: #00CC33;
  90. color: #ffffff;
  91. cursor: pointer;
  92. }
  93. .title {
  94. float: left;
  95. width: 160px;
  96. clear: left;
  97. }
  98. .submit {
  99. width: 310px;
  100. text-align: right;
  101. }
  102. </style>
  103. </head>
  104. <body>
  105. <h1>Poetry Workshops</h1>
  106. <p>We will be conducting a number of poetry workshops and symposiums throughout the year.</p>
  107. <p>Please note that the following events are free to members:</p>
  108. <ul>
  109. <li>A Poetic Perspective</li>
  110. <li>Walt Whitman at War</li>
  111. <li>Found Poems and Outsider Poetry</li>
  112. </ul>
  113. <table>
  114. <tr class="head">
  115. <th></th>
  116. <th>New York</th>
  117. <th>Chicago</th>
  118. <th>San Francisco</th>
  119. </tr>
  120. <tr>
  121. <th>A Poetic Perspective</th>
  122. <td>Sat, 4 Feb 2012<br />11am - 2pm</td>
  123. <td>Sat, 3 Mar 2012<br />11am - 2pm</td>
  124. <td>Sat, 17 Mar 2012<br />11am - 2pm</td>
  125. </tr>
  126. <tr class="even">
  127. <th>Walt Whitman at War</th>
  128. <td>Sat, 7 Apr 2012<br />11am - 1pm</td>
  129. <td>Sat, 5 May 2012<br />11am - 1pm</td>
  130. <td>Sat, 19 May 2012<br />11am - 1pm</td>
  131. </tr>
  132. <tr>
  133. <th>Found Poems &amp; Outsider Poetry</th>
  134. <td>Sat, 9 Jun 2012<br />11am - 2pm</td>
  135. <td>Sat, 7 Jul 2012<br />11am - 2pm</td>
  136. <td>Sat, 21 Jul 2012<br />11am - 2pm</td>
  137. </tr>
  138. <tr class="even">
  139. <th>Natural Death: An Exploration</th>
  140. <td>Sat, 4 Aug 2012<br />11am - 4pm</td>
  141. <td>Sat, 8 Sep 2012<br />11am - 4pm</td>
  142. <td>Sat, 15 Sep 2012<br />11am - 4pm</td>
  143. </tr>
  144. </table>
  145. <form action="http://www.example.com/form.php" method="get">
  146. <fieldset>
  147. <legend>Register your interest</legend>
  148. <p>
  149. <label class="title" for="name">Your name:</label>
  150. <input type="text" name="name" id="name"><br>
  151. <label class="title" for="email">Your email:</label>
  152. <input type="text" name="email" id="email">
  153. </p>
  154. <p>
  155. <label for="location" class="title">Your closest center:</label>
  156. <select name="location" id="location">
  157. <option value="ny">New York</option>
  158. <option value="il">Chicago</option>
  159. <option value="ca">San Francisco</option>
  160. </select>
  161. </p>
  162. <span class="title">Are you a member?</span>
  163. <label>
  164. <input type="radio" name="member" value="yes"> Yes
  165. </label>
  166. <label>
  167. <input type="radio" name="member" value="no"> No
  168. </label>
  169. </fieldset>
  170. <div class="submit">
  171. <input type="submit" value="Register" />
  172. </div>
  173. </form>
  174. </body>
  175. </html>