-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic.html
More file actions
137 lines (106 loc) · 2.94 KB
/
basic.html
File metadata and controls
137 lines (106 loc) · 2.94 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
#main_div {
color: white;
width: 200px;
height: 100px;
background-color: rgb(72, 121, 60);
text-align: center;
/* take all to center */
/* border: 2px solid black; */
border-radius: 8px;
box-shadow: 2px 2px 2px rgba(20, 20, 20, .5);
/* margin-top: 20px 10px; */
margin: 20px 10px;
}
.parentDiv {
display: grid;
width: 100vw;
height: 100vh;
/* background-color: aquamarine; */
background-color: rgb(153, 255, 127);
}
.secondDiv {
display: flex;
height: auto;
width: auto;
background-color: rgb(153, 255, 127);
justify-content: center;
}
.centerDiv {
display: grid;
justify-content: center;
align-items: center;
height: auto;
width: 300px;
background-color: violet;
border-radius: 12px;
}
.centerDiv td input {
border-radius: 4px;
padding: 2px;
}
.loginBtn {
height: 30px;
width: 100px;
border-radius: 4px;
/* background-color: #02d8d8; */
background-color: rgb(153, 255, 127);
font: bold;
color: rgb(0, 0, 0);
font-family: monospace;
}
</style>
</head>
<body>
<!-- <div id="main_div">
<p>hello</p>
</div> -->
<div class="parentDiv">
<div>Header</div>
<div class="secondDiv">
<div class="centerDiv">
<table>
<tr>
<td>
<label for="name">Name</label>
</td>
<td>
<input name="name" type="text"><br>
</td>
</tr>
<tr>
<td>
<label for="password">Password</label>
</td>
<td>
<input name="password" type="password">
</td>
</tr>
<tr style="text-align: center;">
<td colspan="2">
<button class="loginBtn">Login</button>
</td>
</tr>
</table>
</div>
</div>
<div>Footer</div>
</div>
<!--
Grid & Flex
---------------------
column(||) - Flex
Row(=) - Grid
-->
</body>
</html>