JSFiddle - React, Tailwind, and code Playground

by Rene van der Lende

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="col-xs-12">
        <div class="container">

            <div class="navbar-collapse collapse" id="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="/cards">AAA</a></li> 
                    <li><a href="/cards">BBB</a></li>
                    <li><a href="/cards">CCC</a></li>
                </ul>
            </div>

        </div>
    </div>
</nav>

<div id="content"></div>

<footer id="footer">
    
    <div class="row">
        <div class="col-md4 col-xs-12">111</div>
        <div class="col-md4 col-xs-12">222</div>
        <div class="col-md4 col-xs-12">333</div>
    </div>
    
</footer>

CSS

html, body{
  width: 100%; height: 100%; 
  padding: 0; margin: 0;
}

body { 
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto /* center body if max-width <100% */
}

ul, li {
  list-style: none;
  padding: 0;
}

li { 
  display: inline
}

body{
  display: flex;                  /* Enter flexbox layout */
  flex-direction: column;         /* a column of several rows */
  justify-content: space-between; /* moves header up, footer down*/
}

.navbar {
  background-color: cornflowerblue;
}

#footer {
  min-height: 50px;
  background-color: black;
  color: rgba(255,255,255,0.87) /* MDL text white */
}

#content {
  flex: 1;        /* fill available space */
  background-color: cornsilk;
}