Skip to content

Commit 312b199

Browse files
author
Maximilian Schwarzmüller
committed
starting setup
1 parent ec78662 commit 312b199

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@
88
<link rel="stylesheet" href="main.css">
99
</head>
1010
<body>
11+
<header>
12+
<ul class="navigation-list">
13+
<li class="navigation-item"><a href="#">Posts</a></li>
14+
<li class="navigation-item"><a href="#">Products</a></li>
15+
<li class="navigation-item"><a href="#">About Us</a></li>
16+
</ul>
17+
</header>
18+
<aside>
19+
<p>My super awesome sidebar</p>
20+
</aside>
21+
<main>
22+
<h1>CSS Grid or Flexbox
23+
</h1>
24+
<p>When should you use which?</p>
25+
</main>
26+
<footer>
27+
<ul class="navigation-list">
28+
<li class="navigation-item"><a href="#">Terms of Use</a></li>
29+
<li class="navigation-item"><a href="#">Support</a></li>
30+
</ul>
31+
</footer>
1132
</body>
1233
</html>
1334

main.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body {
6+
font-family: sans-serif;
7+
margin: 0;
8+
}
9+
10+
header,
11+
aside,
12+
main,
13+
footer {
14+
padding: 16px;
15+
text-align: center;
16+
}
17+
18+
header {
19+
background: #521751;
20+
}
21+
22+
aside {
23+
background: #fa923f;
24+
}
25+
26+
footer {
27+
background: black;
28+
}
29+
30+
.navigation-list {
31+
list-style: none;
32+
margin: 0;
33+
padding: 0;
34+
}
35+
36+
.navigation-item a {
37+
text-decoration: none;
38+
color: white;
39+
}
40+
41+
.navigation-item a:hover,
42+
.navigation-item a:active {
43+
color: #fa923f;
44+
}

0 commit comments

Comments
 (0)