JSFiddle - React, Tailwind, and code Playground

HTML

<div style="overflow:hidden;display:block; position: fixed; right:0px; top:0px; width:100%;height:37px;background-color: rgba(35,35,35,0.45);border:1px solid black;z-index:10000">test message</div>
<div style="margin-top:37px;border:1px solid black;height:150px">fdf</div>
<div style="margin:0 auto;margin-top:-1px;width:500px;height:100%;background-color:white;border:1px solid black">gfg</div>

CSS

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