forked from ghostmkg/web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBMI.css
138 lines (118 loc) · 2.17 KB
/
BMI.css
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* Sticky navigation at the top */
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #f4f4f4;
padding: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
text-align: left;
z-index: 100;
}
nav a {
color: #000;
text-decoration: none;
margin-right: 20px;
font-size: 16px;
}
nav a:hover {
text-decoration: underline;
}
/* Add margin-top to the container to avoid content overlapping with the fixed nav */
.container {
margin-top: 60px; /* Adjust this value depending on your nav height */
}
.container {
width: 575px;
height: 525px;
background-color: #797978;
padding-left: 30px;
}
#height,
#weight {
width: 150px;
height: 25px;
margin-top: 30px;
}
#weight-guide {
margin-left: 75px;
margin-top: 25px;
}
#results {
font-size: 35px;
margin-left: 90px;
margin-top: 20px;
color: rgb(241, 241, 241);
}
button {
width: 150px;
height: 35px;
margin-left: 90px;
margin-top: 25px;
background-color: #fff;
padding: 1px 30px;
border-radius: 8px;
color: #212121;
text-decoration: none;
border: 2px solid #212121;
font-size: 25px;
}
h1 {
padding-left: 15px;
padding-top: 25px;
}
button:hover {
background-color: #0772f5;
transform: scale(1.05); }
button:active {
background-color: #06f26c;
transform: scale(1);
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Responsive design */
/* Tablet and larger screens */
@media only screen and (min-width: 768px) {
.container {
max-width: 80%;
margin: 40px auto;
}
#height, #weight {
width: 200px;
}
button {
width: 200px;
}
}
/* Mobile screens */
@media only screen and (max-width: 767px) {
.container {
width: 90%;
margin: 20px auto;
height: auto;
}
#height, #weight {
width: 100%;
margin-top: 15px;
}
button {
width: 100%;
margin-top: 15px;
}
#results {
font-size: 25px;
margin-left: 20px;
}
#weight-guide {
margin-left: 20px;
}
}