Skip to content

Commit a633a2b

Browse files
committed
centered by height
1 parent 6abf8be commit a633a2b

2 files changed

Lines changed: 20 additions & 11 deletions

File tree

index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
<link rel="stylesheet" href="styles.css">
88
</head>
99
<body>
10-
<header>
11-
<h1>Hi, I'm Savely!</h1>
12-
</header>
13-
<footer>
14-
<a href="https://github.com/volvetcode">github</a>
15-
<!-- -->
16-
17-
<!-- -->
18-
<a href="https://t.me/iamvolvet">telegram</a>
19-
<p>@ 2024 volvet.tech</p>
10+
<div class="container">
11+
<header>
12+
<h1>Hi, I'm Savely!</h1>
13+
</header>
14+
<footer>
15+
<a href="https://github.com/volvetcode">github</a>
16+
<!-- -->
17+
18+
<!-- -->
19+
<a href="https://t.me/iamvolvet">telegram</a>
20+
<p>@ 2024 volvet.tech</p>
2021
</footer>
22+
</div>
2123
</body>
2224
</html>

styles.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44
padding: 0;
55
}
66

7+
html {
8+
height: 100%;
9+
}
10+
711
body {
812
font-family: "Roboto Mono", monospace;
913
color: #0a0a23;
1014
font-size: 18px;
1115
padding: 1em;
1216
line-height: 1.4;
1317
text-align: center;
14-
margin-top: 15vw;
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
height: 100%;
1522
}
1623

1724
h1 {

0 commit comments

Comments
 (0)