Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:css:start [2021/01/12 11:16]
kalenpw
development:css:start [2021/06/29 14:59] (current)
kalenpw
Line 4: Line 4:
   * [[ .: less | LESS ]]   * [[ .: less | LESS ]]
   * [[ .: sass | SASS ]]   * [[ .: sass | SASS ]]
 +
 +----
 +===== Sticky Footer =====
 +Ensure your content (header, body, etc everything besides footer) is all wrapped in a ''<div>'' with class ''.content-wrapper''
 +<code css>
 +html,
 +body {
 +    height: 100%;
 +}
 +
 +body {
 +    display: flex;
 +    flex-direction: column;
 +}
 +
 +.content-wrapper {
 +    flex: 1 0 auto;
 +}
 +
 +footer {
 +    flex-shrink: 0;
 +}
 +</code>
  
 ---- ----
Line 15: Line 38:
 } }
 </code> </code>
 +----