Skip to content

Commit a524593

Browse files
committed
Add Styles for table and form
1 parent ccb4426 commit a524593

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

Source-Code/BMICalculator/style.css

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
body {
2+
text-align: center;
3+
font-family: 'Courier New', Courier, monospace;
4+
background: linear-gradient(rgb(63, 217, 220) 0%, rgb(238, 248, 248) 100%);
5+
min-height: 100vh;
6+
}
7+
8+
.container {
9+
margin: 20px;
10+
display: flex;
11+
flex-direction: column;
12+
align-items: center;
13+
}
14+
15+
.bmi {
16+
width: 350px;
17+
background-color: #fff;
18+
padding: 20px;
19+
border-radius: 10px;
20+
margin: auto;
21+
}
22+
23+
h2 {
24+
font-size: 30px;
25+
font-weight: 600;
26+
}
27+
28+
.text {
29+
text-align: center;
30+
}
31+
32+
#weight,
33+
#height {
34+
color: #222f3e;
35+
text-align: left;
36+
font-size: 20px;
37+
font-weight: 200;
38+
outline: none;
39+
border: 1px solid black;
40+
border-radius: 7px;
41+
width: 200px;
42+
height: 35px;
43+
}
44+
45+
#weight:focus,
46+
#height:focus {
47+
width: 250px;
48+
transition: 0.5s;
49+
}
50+
51+
#result {
52+
color: #971f1f;
53+
font-size: large;
54+
font-weight: 400;
55+
}
56+
57+
#btn {
58+
font-size: medium;
59+
font-family: inherit;
60+
margin-top: 10px;
61+
border: none;
62+
background: lightblue;
63+
width: 150px;
64+
padding: 10px;
65+
border-radius: 30px;
66+
outline: none;
67+
cursor: pointer;
68+
transition: 0.5s;
69+
}
70+
71+
#btn:hover {
72+
transform: scale(1.1);
73+
transition: 0.5s;
74+
}
75+
76+
table {
77+
width: 400px;
78+
border-collapse: collapse;
79+
margin: 20px auto;
80+
}
81+
82+
tr {
83+
background: lightblue;
84+
}
85+
86+
th {
87+
background: #fff;
88+
color: #000;
89+
font-weight: bold;
90+
}
91+
92+
td,
93+
th {
94+
padding: 10px;
95+
border: 1px solid #000;
96+
text-align: center;
97+
font-size: 18px;
98+
}

0 commit comments

Comments
 (0)