Skip to content

Commit 55ffbef

Browse files
modified the form color and perofrmance desktop
1 parent f409355 commit 55ffbef

2 files changed

Lines changed: 12 additions & 23 deletions

File tree

Form-Controls/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<meta charset="utf-8" />
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>My form exercise</title>
8-
<meta name="description" content="" />
8+
<meta name="description" content="The page Contains Form to submit customer information about T-shirts" />
99
<meta name="viewport" content="width=device-width, initial-scale=1" />
1010
<style>
1111
input:valid{
12-
border:2px solid blue;
12+
border:2px solid yellow;
1313
}
1414
input:invalid:not(:placeholder-shown){
1515
border:2px solid red;
@@ -24,7 +24,7 @@ <h1>Product Pick</h1>
2424
<form>
2525
<!-- -->
2626
<div>
27-
<label for="customername">Customer name: </label>
27+
<label for="customername">Customer name *: </label>
2828
<input type="text" id="customername" name="customername" required
2929
pattern="^[A-Za-z]{2,}$"
3030
placeholder="Customer name"/>
@@ -38,7 +38,7 @@ <h1>Product Pick</h1>
3838
</div>
3939

4040
<div>
41-
<label for="color">T-shirt color:</label>
41+
<label for="color">T-shirt color *:</label>
4242
<div class="control">
4343
<label class="t-color">
4444
<input type="radio" name="color" value="Black" required/>
@@ -55,8 +55,8 @@ <h1>Product Pick</h1>
5555
</div>
5656
</div>
5757
<div>
58-
<label for="sizes">T-shirt size:</label>
59-
<select name="size" id="sizes" required>
58+
<label for="sizes">T-shirt size *:</label>
59+
<select name="sizes" id="sizes" required>
6060
<option value="xs">XS</option>
6161
<option value="s">S</option>
6262
<option value="m">M</option>

Form-Controls/style.css

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body {
55
display: flex;
66
flex-direction: column;
77
align-items: center;
8-
padding: 40px;
8+
padding: 25px;
99
}
1010

1111
header h1 {
@@ -14,14 +14,17 @@ header h1 {
1414
}
1515

1616
form {
17-
background: #ffffff;
17+
background: skyblue;
1818
padding: 30px;
1919
border-radius: 8px;
2020
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
2121
width: 100%;
2222
max-width: 400px;
2323
}
24-
24+
input:focus {
25+
border-color: #3498db;
26+
outline: none;
27+
}
2528
/* Labels and Inputs */
2629
label {
2730
display: block;
@@ -43,19 +46,6 @@ select,button {
4346
transition: border-color 0.3s ease;
4447
}
4548

46-
/* Validation Styling */
47-
input:focus {
48-
outline: none;
49-
border-color: #3498db;
50-
}
51-
52-
53-
.control {
54-
margin-top: 2px;
55-
display: flex;
56-
gap: 15px;
57-
}
58-
5949
.radio {
6050
display: flex;
6151
align-items: center;
@@ -68,7 +58,6 @@ input:focus {
6858
border: none;
6959
cursor: pointer;
7060
font-size: 1rem;
71-
transition: background-color 0.3s ease;
7261
}
7362

7463
/* Footer */

0 commit comments

Comments
 (0)