-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-css.css
65 lines (57 loc) · 1.01 KB
/
form-css.css
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
body {
font-family: Arial, Helvetica, sans-serif;
background-image: linear-gradient(to right, rgb(20, 147, 220), rgb(17, 54, 71));
}
.box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.6);
padding: 15px;
border-radius: 15px;
widht: 20%;
color: white;
}
fieldset {
border: 3px solid dodgerblue;
}
legend {
border: 1px solid dodgerblue;
padding: 10px;
text-align: center;
background-color: dodgerblue;
border-radius: 8px;
}
.inputbox {
position: relative;
}
.inputuser {
background: none;
border: none;
border-bottom: 1px solid white;
outline: none;
color: white;
font-size: 15px;
width: 100%;
letter-spacing: 2px;
}
.inputlabel {
position: absolute;
top: 0px;
left: 0px;
pointer-events: none;
transition: .5s;
}
.inputuser:focus ~ .inputlabel,
.inputuser:valid ~ .inputlabel {
top: -20px;
font-size: 12px;
color: dodgerblue;
}
#date_of_birth {
border: none;
padding: 8px;
border-radius: 10px;
outline: none;
}