Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>Calculator</title>
- <style id="jsbin-css">
- #calculator {
- width: 293px;
- height: auto;
- /* centres it on web page*/
- margin: 100px auto;
- /*backgound*/
- padding: 20px 20px 9px;
- background: green;
- border-radius: 3px;
- }
- /* Inset shadow on the screen to create indent */
- .top .screen {
- height: 40px;
- width: 270px;
- padding: 0px 10px ;
- background: white;
- border-radius: 30px;
- box-shadow: inset 4px 4px 4px grey;
- font-size: 17px;
- line-height: 40px;
- color: grey;
- text-align: right;
- }
- /* add right edge */
- .keys, .top {overflow: hidden;}
- /* Applying same to the keys */
- .keys span, .top span.clear {
- float: left;
- position: relative;
- top: 0;
- width: 66px;
- height: 36px;
- background: grey;
- border-radius: 3px;
- box-shadow: 0px 4px;
- margin: 0 7px 11px 0;
- color: white;
- line-height: 36px;
- text-align: center;
- }
- </style>
- </head>
- <body>
- <div id="calculator">
- <!-- Screen -->
- <div class="top">
- <div class="screen">0</div>
- </div>
- <div class="keys">
- <!-- operators and other keys -->
- <span class="operator">(</span>
- <span class="operator">)</span>
- <span class="operator">ยฑ</span>
- <span class="operator">รท</span>
- <span>7</span>
- <span>8</span>
- <span>9</span>
- <span class="operator">x</span>
- <span>4</span>
- <span>5</span>
- <span>6</span>
- <span class="operator">-</span>
- <span>1</span>
- <span>2</span>
- <span>3</span>
- <span class="operator">+</span>
- <span>0</span>
- <span>.</span>
- <span class="eval">C</span>
- <span class="operator">=</span>
- </div>
- </div>
- <script id="jsbin-source-css" type="text/css">#calculator {
- width: 293px;
- height: auto;
- /* centres it on web page*/
- margin: 100px auto;
- /*backgound*/
- padding: 20px 20px 9px;
- background: green;
- border-radius: 3px;
- }
- /* Inset shadow on the screen to create indent */
- .top .screen {
- height: 40px;
- width: 270px;
- padding: 0px 10px ;
- background: white;
- border-radius: 30px;
- box-shadow: inset 4px 4px 4px grey;
- font-size: 17px;
- line-height: 40px;
- color: grey;
- text-align: right;
- }
- /* add right edge */
- .keys, .top {overflow: hidden;}
- /* Applying same to the keys */
- .keys span, .top span.clear {
- float: left;
- position: relative;
- top: 0;
- width: 66px;
- height: 36px;
- background: grey;
- border-radius: 3px;
- box-shadow: 0px 4px;
- margin: 0 7px 11px 0;
- color: white;
- line-height: 36px;
- text-align: center;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement