-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmiCalculator.html
78 lines (73 loc) · 2.07 KB
/
bmiCalculator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMI Calculator</title>
<style>
body{
background-color: antiquewhite;
}
h1{
font-family: "Lucida Handwriting";
text-align: center;
padding-top: 25px;
color: deeppink;
}
.align{
padding: 30px 200px 250px auto;
height: 50px;
}
input[type=text], select {
width: 100%;
padding: 12px 20px;
margin: 25px 0;
display: inline-block;
border: 1px solid #ccc;
text-align: center;
border-radius: 7px;
box-sizing: border-box;
font-family: 'Maiandra GD';
font-weight: 600;
font-size: 19px;
letter-spacing: 2px;
}
button[type=submit] {
width: 60%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
text-align: center;
border: none;
border-radius: 7px;
cursor: pointer;
font-family: 'Maiandra GD';
font-weight: 600;
}
button[type=submit]:hover {
background-color: #45a049;
}
#btn{
margin-left: 21%;
font-size: 19px;
letter-spacing: 2px;
}
div {
border-radius: 10px;
background-color: #f2f2f2;
padding: 20px;
width: 65%;
height: 430px;
margin-left: 16%;
margin-top: 100px;
</style>
</head>
<body>
<h1>BMI (Body Mass Index) Calculator</h1>
<form class="align" action="/bmicalculator" method="post">
<input type="text" name="weight" placeholder="Your Weight in kg">
<input type="text" name="height" placeholder="Your Height in meter">
<button id="btn" type="submit">Calculate BMI</button>
</form>
</body>
</html>