Skip to content

Commit ad1ae7c

Browse files
Добавляет sticky-footer (htmlacademy#63)
1 parent bfd3876 commit ad1ae7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@
88

99
html {
1010
scroll-behavior: smooth;
11+
height: 100%;
1112
}
1213

1314
body {
1415
margin: 0;
16+
min-height: 100%;
1517
font-size: 16px;
1618
line-height: 1.6;
1719
font-family: "Helvetica", "Arial", sans-serif;
1820
color: #5a5a5a;
1921
background-color: #ffffff;
22+
display: flex;
23+
flex-direction: column;
2024
}
2125

2226
a:link,
@@ -373,6 +377,7 @@ header a:visited {
373377

374378
footer {
375379
padding: 2rem;
380+
margin-top: auto;
376381
background-color: #2d2d44;
377382
}
378383

0 commit comments

Comments
 (0)