-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnavigation bar html and css
81 lines (79 loc) · 2.11 KB
/
navigation bar html and css
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
<!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>Navigation bar</title>
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Acme&display=swap" rel="stylesheet">
<style>
*{
margin: 0px;
padding: 0px;
}
h1{
font-family: 'Baloo Bhai 2', cursive;
}
.logo{
font-size: 25px;
width: 40%;
color: darkblue;
padding-left: 60px;
text-shadow: 2px 2px 2px gray;
}
.menu{
display: flex;
justify-content: space-around;
font-size: 18px;
font-family: 'Acme', sans-serif;
font-weight: bold;
width: 60%;
padding-right: 40px;
}
.menu a{
text-decoration: none;
color: darkblue;
position: relative;
}
.menu a:before{
content: "";
position: absolute;
left: 0%;
top: 100%;
width: 0%;
height: 3px;
background-color: black;
transition: all 0.5s linear ;
}
.menu a:hover:before{
width: 100%;
background-color: blue;
}
.menu a:hover{
color: red;
}
nav{
background-color: aqua;
height: 100px;
display: flex;
justify-content: space-around;
align-items: center;
}
</style>
</head>
<body>
<nav>
<div class="logo">
<h1>FrontEnd WebDevelopment</h1>
</div>
<div class="menu">
<a href="#">Home</a>
<a href="#">Services</a>
<a href="#">Gallery</a>
<a href="#">About Us</a>
<a href="#">Contact Us</a>
</div>
</nav>
</body>
</html>