Skip to content

Commit 529ddd1

Browse files
committed
Max Width Wrapper Exercise 🪖
1 parent 427dc16 commit 529ddd1

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>CSS - Max Width Wrapper</title>
7+
<link href="https://fonts.cdnfonts.com/css/wotfard" rel="stylesheet" />
8+
<link rel="stylesheet" href="style.css" />
9+
<style>
10+
*,
11+
*::before,
12+
*::after {
13+
margin: 0;
14+
padding: 0;
15+
box-sizing: border-box;
16+
line-height: 1.5;
17+
}
18+
19+
body {
20+
font-family: "wotfard", sans-serif;
21+
background-color: black;
22+
display: flex;
23+
justify-content: center;
24+
height: 100vh;
25+
align-items: center;
26+
}
27+
28+
.container {
29+
max-width: 500px;
30+
background-color: white;
31+
padding: 30px 40px;
32+
border-radius: 8px;
33+
margin: 0 16px;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<div class="container">
39+
<h3>
40+
Champions aren't made in gyms. Champions are made from something they
41+
have deep inside them-a desire, a dream, a vision. They have to have the
42+
skill, and the will. But the will must be stronger than the skill.
43+
</h3>
44+
</div>
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)