JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container1">
Some text and other divs go here. This is where the background will be
an image.
</div>
<div class="container2">
Some text will also here along with divs. This is where I want to use the
red background.
</div>
CSS
.container1 {
background-image: url('http://jsfiddle.net/img/top-bg.png');
width:100%;
}
.container2 {
width: 100%;
background-color: #990000;
}
/* if there is padding/margin */
html, body {
padding:0;
margin:0;
}
.container1, .container2 {
margin:0;
}