forked from diksha6036/NavBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
167 lines (130 loc) · 3.48 KB
/
index.html
File metadata and controls
167 lines (130 loc) · 3.48 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My first website</title>
<style>
* {
margin: 0px;
/* padding: 0; */
}
#navbar {
background-color:black;
height: 50px;
border-radius: 20px;
margin-top: 3px;
margin-left: 12px;
width: 98%;
}
#mybar {
padding-top: 8px;
list-style-type: none;
color: white;
font-size: 20px;
font-family: 'Times New Roman', Times, serif;
}
.first1 {
display: inline;
margin-left: 3px;
}
.first1:hover{
color:lightgray;
cursor: pointer;
}
.first2 {
display: inline;
margin-left: 30px;
}
.first2:hover{
color:lightgray;
cursor: pointer;
}
.first3 {
display: inline;
margin-left: 40px;
}
.first3:hover{
color:lightgray;
cursor: pointer;
}
.first4 {
display: inline;
margin-left: 50px;
}
.first4:hover{
color:lightgray;
cursor: pointer;
}
#searchbox {
display: inline;
margin-left: 450px;
}
#searchbar {
padding: 6px;
text-align: center;
font-size: 17px;
border-radius: 30px;
border-style: double;
border-color: black;
font-family: 'Times New Roman', Times, serif;
}
#image {
display: inline;
margin-left: 7px;
}
#yess {
width: 20px;
}
#login {
margin-left: 120px;
height: 30px;
width: 70px;
border-radius: 10px;
border-style: double;
background-color: rgb(160, 152, 152);
font-family: 'Times New Roman', Times, serif;
font-size: 19px;
}
#login:hover{
background-color: grey;
cursor: pointer;
}
#signup {
margin-left: 30px;
height: 30px;
width: 75px;
border-radius: 10px;
border-style: double;
background-color: rgb(160, 152, 152);
font-family: 'Times New Roman', Times, serif;
font-size: 17px;
}
#signup:hover{
background-color: grey;
cursor: pointer;
}
</style>
</head>
<body>
<header>
<nav id="navbar">
<ul id="mybar">
<li class="first1">Home</li>
<li class="first2">Content</li>
<li class="first4">About</li>
<li class="first3">Contact </li>
<div id="searchbox">
<input type="text" id="searchbar" placeholder="Type here to search">
</div>
<div id="image">
<img src="searchicon.png" id="yess">
</div>
<button id="login">Login </button>
<button id="signup">Sign Up</button>
</ul>
</nav>
</header>
</body>
</html>