JSFiddle - React, Tailwind, and code Playground
HTML
<img src="http://www.canim.net/araba/images/Acura_Adcd-SportsCar_77_1024x768.jpg"/>
<p>SOME TEXT GOES HERE</p>
CSS
body, html{
margin:0;
padding:0;
}
img{
margin:0;
padding:0;
position:absolute;
z-index:0;
}
p{
position:absolute;
z-index:1;
color:white;
font-size:30px;
font-weight:bold;
margin:10px;
}
JavaScript
$(window).resize(function(){
var bgwidth = $(window).width(),
bgheight= $(window).height();
$('img').attr({width:bgwidth, height:bgheight});
})