-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (113 loc) · 2.98 KB
/
index.html
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
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stylin with CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<style>
html{
background-color: #ccc;
}
body{
font-family:arial;
max-width:960px;
width:90%;
background-color:#fff;
margin:auto;
padding:1%;
}
header.page-header{
background-color:rgb(255, 217, 224);
}
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> Stylin with CSS</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>
<table class="my-table">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>[email protected]</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>[email protected]</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>[email protected]</td>
</tr>
</table>
<footer>
<p><small>© 2023 by
Priscila Garcia-Mendoza, 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>