-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrderForm.html
134 lines (132 loc) · 3.46 KB
/
OrderForm.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
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: "Segoe UI", sans-serif;
background-color: #f4f4f4;
color: #333;
}
.container {
max-width: 800px;
margin: 50px auto;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 40px;
border-radius: 15px;
}
h2 {
text-align: center;
color: #007bff;
margin-bottom: 30px;
}
.row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-size: 18px;
font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
width: 100%;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 16px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
max-height: 200px;
}
textarea {
resize: vertical;
}
select {
height: 50px;
}
input[type="submit"] {
width: 100%;
padding: 15px;
border: none;
border-radius: 8px;
background-color: #007bff;
color: white;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
.column {
flex: 0 0 calc(49% - 20px);
padding: 20px;
border: 1px solid #ddd;
box-sizing: border-box;
border-radius: 5px;
}
@media (max-width: 600px) {
.column {
flex-basis: 100%;
margin: 10px 0;
}
}
</style>
</head>
<body>
<div class="container">
<h2>Order Form</h2>
<form>
<div class="row">
<div class="column">
<label for="fname">First Name:</label>
<input type="text" id="fname" name="fname" />
</div>
<div class="column">
<label for="lname">Last Name:</label>
<input type="text" id="lname" name="lname" />
</div>
</div>
<div class="row">
<div class="column">
<label for="email">Email:</label>
<input type="email" id="email" name="email" />
</div>
<div class="column">
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" />
</div>
</div>
<div class="row">
<label for="address">Shipping Address:</label>
<textarea id="address" name="address" rows="3"></textarea>
</div>
<div class="row">
<div class="column">
<label for="product">Product:</label>
<select id="product" name="product">
<option value="product1">Product 1</option>
<option value="product2">Product 2</option>
<option value="product3">Product 3</option>
</select>
</div>
<div class="column">
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" name="quantity" min="1" />
</div>
</div>
<input type="submit" value="Place Order" />
</form>
</div>
</body>
</html>