JSFiddle - React, Tailwind, and code Playground

Restaurant Menu With Sticky Header and Footer.

by Yolanda Robles

HTML

<div id="header">
</div>
<div id="content">
    
<div class="container">
    <div class="titulo">holaaa</div>
    <br />
    This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>This is Content
    <br/>
</div>

<div id="footer">
</div>

CSS

html {
    height: 100%;
}

.container {
    margin:5%;
    padding: 50px;
    z-index: 1;
    border-radius: 20px;
    box-shadow: inset 0 0 0 2px #F5D0A9;
    -moz-box-shadow: inset 0 0 0 2px #F5D0A9;
    -webkit-box-shadow: inset 0 0 0 2px #F5D0A9;
    
    /* Background */
    background-image:url(http://www.freecreatives.com/wp-content/uploads/2015/03/vintage-backgrounds-17559-18119-hd-wallpapers.jpg);

}


#header {
position: fixed;
top: 0;
height: 20px;
width: 100%;
background-color: #ff0000;
}
#footer {
position: fixed;
bottom: 0;
height: 20px;
width: 100%;
background-color: #ff0000;
}
#content {
position: absolute;
top: 20px;
bottom: 20px;
width: 100%;
background-color:#0000ff;
overflow: auto;
}