change style.css question about transparent background
-
Just want to take a shot here and see if someone can help. I think this is probably a pretty easy question.
In a new theme I have, there is this code in style.css –
.title-mask .entry-title, .content-mask p {
background: #FFF;
background: rgba(255, 255, 255, 1);
margin-bottom: 0;
padding: 15px;
text-transform: uppercase;
}This controls post title showing up in a slider. As it comes out now, it makes a white box on top of the picture for the post, and writes the title in black. (That may be obvious)
I want the background to be transparent so that it doesn’t cover up the image, and I want to change the color of the text to something bright (that isn’t important of course, as I can always change color)
I’ve been advised that I can change – background: rgba(255, 255, 255, 1); – to background: rgba(255, 255, 255, 0);
but that did nothing. I was also told I could add –
.title-mask h4 { color: #ff0000 }
to change the color of text, but I tried adding that and it did nothing either. Probably because I don’t know where to put it.
Could anyone show me exactly how the code should look?
- The topic ‘change style.css question about transparent background’ is closed to new replies.