-
Notifications
You must be signed in to change notification settings - Fork 0
/
search-bar.html
59 lines (48 loc) · 1.52 KB
/
search-bar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>Document</title>
</head>
<style>
.search-bar{
background: rgba(145, 145, 145, 0.2);
width: 75%;
height: 40px;
}
.search-bar i{
color: rgb(143, 143, 143);
margin-left: 10px;
margin-top: 13px;
position: relative;
cursor: pointer;
}
#input-search{
width: 90%;
box-shadow: none;
background-color: transparent;
outline: none;
border: none;
color: rgb(85, 85, 85);
font-size: 16px;
display: inline-block;
position: absolute;
top: 4px;
}
</style>
<body>
<i class="fa fa-lg fa-search" aria-hidden="true"></i>
<div class="search-bar inline">
<i class="fa fa-lg fa-search" aria-hidden="true"></i><input type="text" id="input-search" class="form-control inline" placeholder="Search">
</div>
</body>
</html>