JSFiddle - React, Tailwind, and code Playground

by dipeshbeckham

HTML

<div class="container">

  <div class="scroll-content">
    <br/>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
    <p>
    This will have content here.
    </p>
  </div>
</div>

CSS

.container {
  background:url(https://vignette.wikia.nocookie.net/assassinscreed/images/b/b4/Ac_news_announce-keyartt-thumb-ncsa_292590.jpg/revision/latest/scale-to-width-down/350?cb=20170612130736) repeat-y;
  overflow:scroll;
  height : 400px;
}

.scroll-content {
  background-color:white;
  margin-top:100px;
  position: relative;
  top:50px;
  height : 50vh;
}