1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 <title>Navigation</title>
9 <style>
10 .navbar{
11 background-color: black;
12 border-radius: 30px;
13
14 }
15 .navbar ul{
16 overflow: auto;
17 }
18 .navbar li{
19 float:left;
20 list-style: none;
21 margin: 13px 20px;
22
23 }
24 .navbar li a{
25 padding: 3px 3px;
26 text-decoration: none;
27 color: white;
28 }
29 .navbar li a:hover{
30 color: red
31 }
32 .search{
33 float: right;
34 color: white;
35 padding: 12px 75px;
36 }
37 .navbar input{
38 border: 2px solid black;
39 border-radius: 14px;
40 padding: 3px 17px;
41 width: 129px;
42 }
43 </style>
44</head>
45
46<body>
47 <header>
48 <nav class="navbar">
49 <ul>
50 <li><a href="#">Home</a></li>
51 <li><a href="#">About</a></li>
52 <li><a href="#">Services</a></li>
53 <li><a href="#">Contact us</a></li>
54 <div class="search">
55 <input type="text" name="search" id="search" placeholder="Search this website">
56 </div>
57 </ul>
58 </nav>
59 </header>
60</body>
61
62</html>
63
1 .navbar input{
2 border: 2px solid black;
3 border-radius: 14px;
4 padding: 3px 17px;
5 width: 129px;
6 }