Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(css-cookbook): sticky footers not being sticky
  • Loading branch information
BassOfBass committed Dec 15, 2020
commit 6218d711616fa51807647c0cfb73a40287d07876
12 changes: 9 additions & 3 deletions css-cookbook/sticky-footer--download.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
<link rel="stylesheet" href="styles.css">

<style>

html {
height:100%;
box-sizing: border-box;
}

body {
height:100%;
background-color: #fff;
color: #333;
font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
Expand All @@ -19,12 +26,11 @@
}

* {
box-sizing: border-box;
box-sizing: inherit;
}

section {
height: 400px;
width: 500px;
height: 100%
}

.wrapper {
Expand Down
8 changes: 7 additions & 1 deletion css-cookbook/sticky-footer-flexbox--download.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@


<style>
html {
height:100%;
box-sizing: border-box;
}

body {
height: 100%;
background-color: #fff;
color: #333;
font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
Expand All @@ -19,7 +25,7 @@
}

* {
box-sizing: border-box;
box-sizing: inherit;
}

.wrapper {
Expand Down
13 changes: 11 additions & 2 deletions css-cookbook/sticky-footer-flexbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@
<link rel="stylesheet" href="styles.css">

<style>
* {
html {
height:100%;
box-sizing: border-box;
}

* {
box-sizing: inherit;
}

body {
height: 100%;
}

.page-header,
.page-footer {
background-color: rgb(75, 70, 74);
Expand All @@ -28,7 +37,7 @@
}

.preview {
height: 400px;
height: 100%;
overflow: auto;
}
</style>
Expand Down
13 changes: 11 additions & 2 deletions css-cookbook/sticky-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@
<link rel="stylesheet" href="styles.css">

<style>
* {
html {
height:100%;
box-sizing: border-box;
}

* {
box-sizing: inherit;
}

body {
height: 100%;
}

.page-header,
.page-footer {
background-color: rgb(75, 70, 74);
Expand All @@ -26,7 +35,7 @@
}

.preview {
height: 400px;
height: 100%;
overflow: auto;
}
</style>
Expand Down