JSFiddle - React, Tailwind, and code Playground
HTML
<div id="wrapper">
<div id="rotateit"></div>
<div id="content">TEXT</div>
</div>
CSS
#wrapper {
position: absolute ;
top: 10px ;
left: 10px ;
width: 500px ;
height: 100px ;
overflow: hidden ;
border: 2px solid #EAEAEA ;
}
#rotateit {
position: absolute ;
left: -20px ;
top: 20px ;
width: 550px ;
height: 250px ;
background-image: url( 'http://tinyurl.com/c9vtlz2' ) ;
-webkit-transform: rotate(15deg) ;
-moz-transform:rotate(15deg) ;
-ms-transform:rotate(15deg) ;
-o-transform:rotate(15deg) ;
transform:rotate(15deg) ;
}
#content {
position: absolute ;
top: 20px ;
left: 20px ;
}