I’m new to coding and I’m a little lost on a certain part. I would like to accomplish the following but i can’t figure out how to change the opacity of the background while leaving the text/image normal. (the following was made in an adobe program)
Currently i have the following code:
(
)- Doesn’t like some of my code meant to have (div class=“container” inside <>)
<img src="logo.gif"/>
</div>
<div>
with the following in my CSS doc:
.container {
background-color:EFF6E5;
padding: 75px;
opacity:.5;
}
Would it be better to make the text/image with the opaque background then pulled it in instead?
Save the above to your machine and open it in a browser. We have three distinct layers. The parent, the child, and the grandchild. Parent gets the background image; child gets the background opacity, and the grandchild gets the font color.
There is a proviso… There may be ways to do this with less structure. That is a sort of experiment to embark upon when you have a weekend to spend reading and tinkering. I did the above because it was the fast and dirty way to accomplish the desired effect.