0% found this document useful (0 votes)
25 views

5

The document contains HTML and CSS code to build a simple calculator web page with a display input field and numeric and operator buttons laid out in a grid.

Uploaded by

Saif Jutt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

5

The document contains HTML and CSS code to build a simple calculator web page with a display input field and numeric and operator buttons laid out in a grid.

Uploaded by

Saif Jutt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<!

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;
}

#calcul0 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>

You might also like