I have a background for the entire body of my page. Inside the body, I have a form that has another background image specifically for it. I want the background of that form to be slightly transparent so I could see the <body>
background image.
What my code does:
makes the background and the content within the form both transparent
What I want to happen:
only make the background image slightly transparent and the text for content within it to remain at 100% opacity.
<style>
#mainbody{
background-image: url("/images/forest3.jpg");
background-repeat: no-repeat;
background-size: auto;
background-size: 100% 100%;
min-height: 700px;
opacity: .5;
}
#mainbodyContent{
opacity: 1;
}
body{
background-repeat: no-repeat;
background-size: cover;
background-image: url("/images/trianglify/trianglifyBlue.png");
}
</style>
<body>
<div id="mainbody">
<div id="mainbodyContent">
...some content
</div>
</div>
</body>
aditional info:
bootstrap 4.6