-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (115 loc) · 3.15 KB
/
index.html
File metadata and controls
117 lines (115 loc) · 3.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Styling With CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" context="noindex, nofollow">
<style>
html{
background-color:#ccc;
}
body{
max-width: 960px;
width:90%;
background-color: #fff;
font-family: 'Times New Roman', Times, serif;
margin:auto;
padding:1%;
}
header.page-header{
background-color:rgb(199, 88, 125) ;
}
nav{
text-align:center; /* centers the nav */
}
nav ul {
list-style:none; /* removes the bullets */
}
nav ul li{
display:inline-block; /* makes horizontal, but able to declare margins */
margin:0 2%; /* margin left-right, gets smaller as necessary */
}
nav a:hover{
text-decoration: none; /* on hover, underline goes away */
}
table.my-table {
border-collapse: collapse;
}
table.my-table th {
background-color: #54585d;
color: #ffffff;
font-weight: bold;
font-size: 13px;
border: 1px solid #54585d;
}
table.my-table td {
padding: 15px;
}
table.my-table td {
color: #636363;
border: 1px solid #383c3f;
}
table.my-table tr {
background-color: #63aaf5;
}
table.my-table tr:nth-child(odd) {
background-color: #ffffff;
}
footer{
text-align:center;
clear:both;
}
</style>
</head>
<body>
<header class="page-header">
<h1>Styling With CSS By Danait Gebremedhin</h1>
</header>
<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6</a></li>
</ul>
</nav>
<p>Clever content goes here</p>
<p>Clever content goes here</p>
<p>Clever content goes here</p>
<p>Clever content goes here</p>
<table class ="my-table">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
</tr>
<tr>
<td>Danait</td>
<td>Gebremedhin</td>
<td>Danaitalemu3939@example.com</td>
</tr>
<tr>
<td>Henok</td>
<td>Gebremedhn</td>
<td>henifili7856@example.com</td>
</tr><tr>
<td>Tsega</td>
<td>Teklehaymanot</td>
<td>tsegakidanu@example.com</td>
</tr>
</table>
<footer>
<p><small>© 2023 by
Danait Gebremedhin, All Rights Reserved ~
<a id="html-checker" href="#" target="_blank">Check HTML</a> ~
<a id="css-checker" href="#" target="_blank">Check CSS</a></small>
</p>
</footer>
<script>
document.getElementById("html-checker").setAttribute("href","https://validator.w3.org/nu/?doc=" + location.href);
document.getElementById("css-checker").setAttribute("href","https://jigsaw.w3.org/css-validator/validator?uri=" + location.href);
</script>
</body>
</html>