I have this code which splits the page into 6. How do I make each segment transparent but not the actual content This is what I have before but I am not sure on what to do I have tried creating a div for the content and changing the transparency to 1 but that doesn't work so what should I do.
The images are random
Here is the CSS
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#div1, #div2, #div3, #div4, #div5, #div6 {
width: 50%;
height: 50%;
float: left;
}
#div1 {
height: 50%;
width: 50%;
opacity: 0.5;
color: black;
background-image: url("http://htmlcolorcodes.com/assets/images/html-color-codes-color-tutorials-hero-00e10b1f.jpg");
}
#div2 {
height: 50%;
width: 50%;
opacity: 0.5;
color: black;
background-image: url("http://www.intrawallpaper.com/static/images/abstract-mosaic-background.png");
}
#div3 {
background-image: url("http://www.planwallpaper.com/static/images/recycled_texture_background_by_sandeep_m-d6aeau9_PZ9chud.jpg");
}
#div4 {
background: #444;
}
#div5 {
background: #555;
}
#div6 {
background: #666;
}
<div id="div1">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iure mollitia molestias recusandae nulla placeat repellat odio eos. Blanditiis nulla suscipit sequi ducimus distinctio quo tempore.</p>
</div>
<div id="div2">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iure mollitia molestias recusandae nulla placeat repellat odio eos. Blanditiis nulla suscipit sequi ducimus distinctio quo tempore.</p>
</div>
<div id="div3">
</div>
<div id="div4">
</div>
<div id="div5">
</div>
<div id="div6">
</div>