Skip to content

Commit 224342e

Browse files
author
hthiagarajan
committed
style: fix footer width and scrolling behavior
1 parent 8008b0f commit 224342e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

static/css/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
html, body {
22
height: 100%;
33
margin: 0;
4+
overflow-x: hidden;
45
}
56

67
body {
@@ -10,6 +11,7 @@ body {
1011
display: flex;
1112
flex-direction: column;
1213
min-height: 100vh;
14+
position: relative;
1315
}
1416

1517
.navbar-brand {
@@ -19,6 +21,8 @@ body {
1921
main {
2022
flex: 1 0 auto;
2123
padding: 2rem 0;
24+
width: 100%;
25+
overflow-y: auto;
2226
}
2327

2428
.card {
@@ -66,4 +70,14 @@ footer {
6670
background-color: #343a40;
6771
padding: 2rem 0;
6872
margin-top: auto;
73+
width: 100%;
74+
position: relative;
75+
left: 0;
76+
right: 0;
77+
}
78+
79+
footer .container {
80+
max-width: 800px;
81+
margin: 0 auto;
82+
padding: 0 15px;
6983
}

0 commit comments

Comments
 (0)