I have a background image that changes periodically(jquery z-index 1), and over that I have a div that I want to put a name, and a menu in. The idea is to have white words, and for the words to have a black background.
Kind of like this page but with black just behind the words, instead of just white.
So far when my div (#page) has a z-index of 2, the background-color shows correctly over the slide show, but since I don’t want a whole block of black, I added a span around the text, and added a bgcolor to that. But when I do that the slideshow covers up the bgcolor, but not the text.
Any ideas how I can keep my backgroud color up front with the text, without having to use a whole div of black?
html:
<div id="page">
<span class="namer"> <h1>Generic </h1></span>
<span class="namer"><h1>Generic Last</h1></span>
</div>
CSS:
#page {
z-index: 2;
position: relative;
width: 270px;
padding: 7px;
margin: 30px;
font-family: Verdana, Geneva, sans-serif;
color: #FFF;
}
#page .namer {
background-color: #000;
}
#page .namer h1{
margin:10px;
font-size: 12px;
text-transform: uppercase;
}
Thanks in advance!!!