I am designing a webpage with a background-image. There is a white box in the center (using div) and inside the white box is some text. What I want to do is make the text color the same as that of the background of the body. If I set the color attribute of the text to transparent , it disappears since there is a white div. How do I do this?
This is the link to JSFiddle: http://jsfiddle.net/FpJpV/
The html is
<div>
<h1>Title</h1>
</div>
The CSS is
body {
background-color: red;
font-family: sans-serif;
}
div {
width: 200px;
background-color: white;
margin: auto;
text-align: center;
padding: 1em;
}
Note: In the JSFiddle, i used a red background for simplicity but in the real webpage, the background of the body is an image.