Advertisement
Kamen_Mitev

Calculator

Nov 9th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Calculator</title>
  5. <style type="text/css">
  6.  
  7. table { border-color: #800000;
  8. background-color: #333399;
  9. color: #000000;
  10. width:200px;
  11.  
  12. }
  13. td
  14. {
  15. width:50px;
  16. height:50px ;
  17. text-align:center;
  18. padding:0;
  19. }
  20. #result { text-align: right;
  21. width: 200px;
  22. height:40px;
  23. font-size:35px;
  24. }
  25.  
  26. #plus
  27. {
  28. width:45px;
  29. height:45px;
  30. text-align: center;
  31. background-color: #00CC00;
  32. }
  33. #minus
  34. {
  35. color: #FFFFFF;
  36. background-color: #000000;
  37.  
  38. }
  39. #sum
  40. {
  41. background-color: #000000;
  42. color: #FFFFFF;
  43. }
  44. #point
  45. {
  46. background-color: #000000;
  47. color:#FFFFFF;
  48. }
  49. #one
  50. {
  51. width: 30px;
  52. height: 30px;
  53. }
  54. #zero
  55. {
  56. width: 35px;
  57. height: 35px;
  58. }
  59. #total
  60. {
  61. width: 35px;
  62. height: 35px;
  63. margin-left: 0px;
  64. background-color:Red;
  65. }
  66.  
  67. #two
  68. {
  69. width: 30px;
  70. height: 30px;
  71. }
  72.  
  73. #three
  74. {
  75. width: 30px;
  76. height: 30px;
  77. }
  78. #six
  79. {
  80. height: 30px;
  81. width: 30px;
  82. }
  83. #five
  84. {
  85. height: 30px;
  86. width: 30px;
  87. }
  88. #four
  89. {
  90. width: 30px;
  91. height: 29px;
  92. }
  93. #seven
  94. {
  95. width: 30px;
  96. height: 30px;
  97. }
  98. #eight
  99. {
  100. width: 30px;
  101. height: 30px;
  102. }
  103. #nine
  104. {
  105. width: 30px;
  106. height: 30px;
  107. }
  108.  
  109. </style>
  110. </head>
  111. <body>
  112. <form name="calculator" method=post action="path/to/some-script.php" >
  113. <table cellpadding="0" cellspacing="0" border="1">
  114. <tr>
  115. <td colspan=4>
  116. <input type="text" id="result" name="result" value="1234567890"/>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td >
  121. <input type="button" id="one" name="1" value="1"/>
  122. </td>
  123. <td >
  124. <input type="button" id="two" name="2" value="2"/>
  125. </td>
  126. <td>
  127. <input type="button" id="three" name="3" value="3"/>
  128. </td>
  129. <td>
  130. <input type="button" id="plus" name="plus" value="+"/>
  131. >
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. <input type="button" id="four" name="4" value="4"/>
  137. </td>
  138. <td>
  139. <input type="button" id="five" name="5" value="5"/>
  140. </td>
  141. <td>
  142. <input type="button" id="six" name="6" value="6"/>
  143. </td>
  144. <td>
  145. <input type="button" id="minus" name="minus" value="-"/>
  146. </td>
  147.  
  148. </tr>
  149. <tr>
  150. <td>
  151. <input type="button" id="seven" name="7" value="7"/>
  152. </td>
  153. <td>
  154. <input type="button" id="eight" name="8" value="8"/>
  155. </td>
  156. <td>
  157. <input type="button" id="nine" name="9" value="9"/>
  158. </td>
  159. <td>
  160. <input type="button" id="sum" name="*" value="*"/>
  161. </td >
  162. </tr>
  163. <tr>
  164. <td colspan="2">
  165. <input type="button" id="zero" name="0" value="0"/>
  166. </td>
  167. <td>
  168. <input type="button" id="point" name="." value="."/>
  169. </td >
  170. <td>
  171. <input type="button" id="total" name="=" value="="/>
  172. </td >
  173. </tr>
  174. </table>
  175. </form>
  176.  
  177. </body>
  178. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement