-
Notifications
You must be signed in to change notification settings - Fork 47
/
Create SearchBar.html
52 lines (49 loc) · 936 Bytes
/
Create SearchBar.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body{
background:#1B2631;
}
div{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}
div input{
width:45px;
height:45px;
color:#fff;
font-weight:bold;
border-radius:50px;
border:3px solid #FF4500;
outline:none;
transition:2s ease;
padding-left:15px;
padding-right:13px;
box-sizing:border-box;
background:#1B2631;
box-shadow:0px 0px 5px #FF4500,
0px 0px 5px #FF4500;
}
div input::placeholder{
color:#fff;
font-weight:bold;
opacity:0;
}
div input:focus::placeholder{
opacity:1;
}
div input:hover{
width:250px;
}
</style>
</head>
<body>
<div>
<input type="search" placeholder="Search . . ." >
</div>
</body>
</html>