Skip to content

Commit c32da5e

Browse files
committed
Fix content centering in main element
1 parent 5513e51 commit c32da5e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v1.2.1
4+
5+
- Fix content centering in main element
6+
37
## v1.2.0
48

59
- Refactor (mobile and desktop) navigation for accessibility improvements

src/partials/div.partial.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
max-width: 1150px;
44
padding-left: 2rem;
55
padding-right: 2rem;
6+
margin-left: auto;
7+
margin-right: auto;
68
}
79
body > div.textContainer > h1 {
810
margin-top: 4rem;

src/partials/page.partial.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ body {
2727

2828
main {
2929
width: 100%;
30+
flex: 1;
31+
display: flex;
32+
flex-direction: column;
3033
}
3134

3235
p {
@@ -35,6 +38,7 @@ p {
3538

3639
.centeredContent {
3740
margin-top: auto;
41+
margin-bottom: auto;
3842
}
3943

4044
a {

0 commit comments

Comments
 (0)