-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractic-5.html
More file actions
74 lines (64 loc) · 1.49 KB
/
practic-5.html
File metadata and controls
74 lines (64 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RENT NEST</title>
<style>
body {
background-image: linear-gradient(rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)), url(quino-al-mBQIfKlvowM-unsplash.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
.topnav {
color: white;
display: flex;
justify-content: space-between;
}
.first-list {
list-style: none;
display: flex;
margin-right: 100px;
font-family: Arial;
font-size: 25px;
}
.first-list li a {
color: white;
margin-left: 50px;
text-decoration: none;
}
.login {
border: 1px solid white;
background-color: transparent;
padding: 10px;
border-radius: 5px;
cursor: pointer;
}
.login:hover {
background-color: white;
color: black;
}
</style>
</head>
<body>
<div class="topnav">
<h4 >LOGO</h4>
<ul class="first-list">
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Services</a></li>
<li><a href="">Contact</a></li>
<li><a class="login" href="register.html">Log in</a></li>
</ul>
</div>
<script>
let login = document.querySelector('.btn');
console.log(login);
login.addEventListener('click', function(){
login.style. = 'red';
})
</script>
</body>
</html>