-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (89 loc) · 1.44 KB
/
style.css
File metadata and controls
94 lines (89 loc) · 1.44 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap");
body {
margin: 0;
padding: 0;
text-align: center;
font-family: "Montserrat";
background: rgb(34, 193, 195);
background: linear-gradient(
0deg,
rgba(34, 193, 195, 1) 0%,
rgba(253, 68, 45, 1) 100%
);
min-height: 100vh;
}
.bmi {
width: 350px;
position: absolute;
top: 50%;
left: 50%;
background-color: #fff;
transform: translate(-50%, -50%);
padding: 20px;
border-radius: 10px;
}
h2 {
font-size: 30px;
font-weight: 600;
}
.text {
text-align: center;
}
#weight,
#height {
color: #222f3e;
text-align: left;
font-size: 20px;
font-weight: 200;
outline: none;
border: 1px solid black;
border-radius: 7px;
width: 200px;
height: 35px;
}
#weight:focus,
#height:focus {
width: 250px;
transition: 0.5s;
}
#result {
color: #341f97;
}
#btn {
font-family: inherit;
margin-top: 10px;
border: none;
color: #000;
background: lightblue;
width: 150px;
padding: 10px;
border-radius: 30px;
outline: none;
cursor: pointer;
transition: 0.5s;
}
#btn:hover {
transform: scale(1.1);
transition: 0.5s;
}
table {
width: 650px;
border-collapse: collapse;
margin: 600px auto;
}
tr {
background: lightblue;
}
th {
background: #fff;
color: #000;
font-weight: bold;
}
td,
th {
padding: 10px;
border: 1px solid #000;
text-align: center;
font-size: 18px;
}