-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
83 lines (70 loc) · 1.84 KB
/
search.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Earch bar with autocomplete</title>
<style>
* {
margin: 0;
padding: 0;
font-family: 'poppins', 'sans-serif';
box-sizing: border-box;
}
body {
background-color: rgb(59, 57, 57);
color: rgb(68, 67, 67);
font-family: 'poppins', 'sans-serif';
}
.searchbox {
width: 600px;
background: #fff;
margin: 200px auto 0;
border-radius: 5px;
}
.row {
display: flex;
align-items: center;
padding: 10px 20px;
}
input {
flex: 1;
height: 50px;
background-color: transparent;
border: 0;
outline: 0;
font-size: 18px;
color: #333;
}
button {
/* width: 10px; */
border: none;
background-color: transparent;
}
.row::placeholder {
color: gray;
}
.resultbox ul {
border-top: 1px siolid #999;
padding: 15px 10px;
}
.resultbox ul li {
list-style-type: none;
border-radius: 3px;
padding: 15px 10px;
cursor: pointer;
}
.resultbox ul li:hover {
background-color: #e9f3ff;
}
</style>
</head>
<body>
<div class="searchbox">
<div class="row"><input type="text" name="" id="inputbox" placeholder="Text Search here" autocomplete="off">
<button><img src="icons8-search-30.png" alt=""></video></button>
</div>
</div>
<script src="search.js"></script>
</body>
</html>