JSFiddle - React, Tailwind, and code Playground
by BurpmanJunior
HTML
<div id="page-fill"></div>
CSS
#page-fill{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #fff;
padding: 15px;
z-index: 9999;
}
#page-fill::after{
max-width: 500px;
background-image: url('http://doghelp.org.uk/bgimg.png');
content: '';
display: block;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
position: absolute;
width: 100%;
height: 100%;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
-o-transform: translateX(-50%) translateY(-50%);
}