Professional Documents
Culture Documents
4
4
4
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Calculator</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
#calculator {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 300px;
}
input {
width: 100%;
margin-bottom: 10px;
padding: 10px;
f
cursor: pointer;
}
#equals {
width: 100%;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="calculator">
<input type="text" id="display" readonly>
<butt
<button>*</button>
<button>0</button>
<button>/</button>
<button>.</button>
<button id="equals" style="grid-column: span 2;">=</button>