Advertisement
coasterka

#4CalculatorCSS

Jun 7th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.58 KB | None | 0 0
  1. table {
  2.     width: 400px;
  3.     height: 400px;
  4.     background: #dbdbdb;
  5.     border: 2px solid black;
  6. }
  7.  
  8. .display{
  9.     background: darkgray;
  10.     border: 2px solid black;
  11.     width: 418px;
  12.     height: 100px;
  13. }
  14.  
  15.     .display input {
  16.         width: 400px;
  17.         height: 80px;
  18.         margin-left: 6px;
  19.         margin-top: 6px;
  20.         background: #ffffff;
  21.         border: 2px solid #9f9f9f;
  22.         text-align: right;
  23.         font-size: 3em;
  24.         color: #303532;
  25.         border: 1px solid darkgreen;
  26.         font-family: serif;
  27.     }
  28.  
  29. .button td button{
  30.     width: 100px;
  31.     height: 100px;
  32.     border: 1px solid black;
  33.     background: linear-gradient(white, gray);
  34.     font-family: Tahoma, sans-serif;
  35.     font-size: 30px;
  36.     font-weight: bold;
  37.     color: white;
  38.     text-shadow: 2px 1px 1px black;
  39. }
  40.  
  41.     .button td button:active{
  42.         background: linear-gradient(gray, lightgray);
  43.     }
  44.  
  45. #plus {
  46.     background: linear-gradient(white, darkgreen);
  47. }
  48.  
  49.     #plus:active {
  50.         background: linear-gradient(sienna, white);
  51.     }
  52.  
  53. #minus {
  54.     background: linear-gradient(white, darkred);
  55. }
  56.  
  57.     #minus:active {
  58.         background: linear-gradient(sienna, white);
  59.     }
  60.  
  61. #multiply {
  62.     background: linear-gradient(white, cadetblue);
  63. }
  64.  
  65.     #multiply:active {
  66.         background: linear-gradient(sienna, white);
  67.     }
  68.  
  69. #divide{
  70.     background: linear-gradient(white, chocolate);
  71. }
  72.  
  73.     #divide:active {
  74.         background: linear-gradient(sienna, white);
  75.     }
  76.  
  77. #equals {
  78.     background: linear-gradient(white, plum, purple);
  79. }
  80.  
  81.     #equals:active {
  82.         background: linear-gradient(sienna, white);
  83.     }
  84.  
  85. #clear {
  86.     background: linear-gradient(white, orange);
  87. }
  88.  
  89.     #clear:active {
  90.         background: linear-gradient(sienna, white);
  91.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement