-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.html
94 lines (93 loc) · 3.52 KB
/
forms.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background-color: #f0f0f0; /* Background color for the body */
}
.mycontainer {
display: flex;
flex-direction: column;
align-items: center;
background-color: #ffffff; /* Different background color for the container */
padding: 20px;
border-radius: 10px; /* Rounded corners for the container */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Slight shadow for better visibility */
}
.logindetails, .registrationdetails {
display: flex;
flex-direction: column;
align-items: center;
}
.logindetails label, .registrationdetails label,
.logindetails input, .registrationdetails input,
.loginbutton {
width: 100%;
max-width: 300px;
margin: 5px 0;
text-align: center;
}
.logindetails input, .registrationdetails input {
border-radius: 5px; /* Rounded corners for inputs */
padding: 10px;
border: 1px solid #ccc;
transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover effect */
}
.logindetails input:hover, .registrationdetails input:hover {
box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Glow effect on hover */
}
.loginbutton button {
width: 100%;
border-radius: 5px; /* Rounded corners for button */
padding: 10px;
border: none;
background-color: #007bff;
color: white;
cursor: pointer;
transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover effect */
}
.loginbutton button:hover {
box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Glow effect on hover */
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form</title>
</head>
<body>
<div class="mycontainer">
<!-- LOGIN FORM -->
<div class="title1"><h2>LOGIN</h2></div>
<form action="">
<div class="logindetails">
<label for="email">Enter Email</label>
<input type="email" name="email" id="email" placeholder="Email">
<label for="password">Enter Password</label>
<input type="password" id="password" name="password" placeholder="password">
<div class="loginbutton">
<button type="submit">LOGIN !!</button>
</div>
</div>
<!-- END LOGIN FORM -->
<div class="title2"><h2>REGISTRATION</h2></div>
<div class="registrationdetails">
<label for="fname">Enter First Name</label>
<input type="text" name="fname" id="fname" placeholder="First Name">
<label for="lname">Enter Last Name</label>
<input type="text" name="lname" id="lname" placeholder="Last Name">
<label for="email">Enter Email</label>
<input type="email" name="email" id="email" placeholder="Enter Email">
<div class="gender">
<label for="male">Male</label>
<input type="radio" name="gender" id="male">
<label for="female">Female</label>
<input type="radio" name="gender" id="female">
</div>
<div class="regbutton">
<button type="submit">REGISTER !!</button>
</div>
</div>
</form>
</div>
</body>
</html>