I am trying to set image as background and add background color to content.But I am not able to get the background image over background color. Also I want background image over span#test
Any help will be highly appreciated.
<div id="container">
<div id="Content">
Hello world, this is my content, Hello world, this is my content <br />
Hello world, this is my content, Hello world, this is my content <br />
Hello world, this is my content, Hello world, this is my content <br />
Hello world, this is my content, Hello world, this is my content <br />
</div>
<span id="test">
Test
</span>
</div
#container
{
position: relative;
margin-bottom: -20px;
background-image: url('https://www.google.co.uk/images/srpr/logo11w.png');
background-size: contain;
background-repeat: no-repeat;
height: 50px;
width: 100px;
z-index: 10001;
}
#Content
{
background-color:#C9CACA;
}
Here is the link 'http://jsfiddle.net/chetangawai/FFS4V/5/'