-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask5CSS.html
More file actions
77 lines (71 loc) · 2.11 KB
/
task5CSS.html
File metadata and controls
77 lines (71 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>task5CSS</title>
<style>
body {
background-color: yellow;
margin: 0;
}
.text {
text-align: left;
width: 50%;
margin-left: 30%;
margin-top: -85px;
border-bottom: 1px dotted;
color: rgb(174, 19, 60);
font-size: x-large;
}
.footer {
text-align: left;
margin-left: 30%;
color: rgb(174, 19, 60);
font-style: italic;
font-size: x-large;
}
.container {
margin-top: 60px;
}
.navbar-item {
background: linear-gradient(to right, rgba(255, 255, 255, 1) 90%, rgba(0, 0, 0, 1) 10%);
}
ul,
li {
list-style: none;
padding: 15px;
width: 40%;
height: 15px;
margin-bottom: 20px;
margin-left: 30px;
font-size: large;
}
li span {
position: absolute;
}
</style>
</head>
<body>
<div class="container">
<nav class="navbar">
<ul>
<li class="navbar-item"><a href="index.html"><span>Home Page</span></a></li>
<li class="navbar-item"><a href="index.html"><span>Musings</span></a></li>
<li class="navbar-item"><a href="index.html"><span>My town</span></a></li>
<li class="navbar-item"><a href="index.html"><span>Links</span></a></li>
</ul>
</nav>
<main class="text">
<h1>My First Styled Page</h1>
<p>Welcome to my styled Page</p>
<p>It lacks images but at least it has style. And it has links, even if they don't go anywhere...</p>
<p>There should be more here, but I don't know yet.</p>
</main>
<footer class="footer">
<p>Made 5th September<br>by myself</p>
<p></p>
</footer>
</div>
</body>
</html>