Hi guys
I have a question on my following issue I could not find a solution for yet (also not with z-index):
So I got a column with the following CSS:
.column-white-background {
background: white;
opacity: 0.7;
color: black;
padding: 15px 15px 15px 15px;
}
The text on it looks nice, but since I have an image in the same block as well it is also transparent with an opacity 0.7.
How can I achieve to make the image itself not transparent at all and display it in its “original” form with opacity 1?
I also tried to assign a separate CSS class to the image, but that did not help either.
Thanks in advance
Michael
Hi Rikard
Please find a link to a screenshot showing the situation in the private content section.
Thanks a lot
Michael
Added the following CSS now:
.column-white-background {
background: white;
opacity: 0.7;
color: black;
padding: 15px 15px 15px 15px;
position: static !important;
z-index: -1 !important;
}
.not-transparent-image {
z-index: 5 !important;
position: static !important;
}
Still does not work for some reason, I have no clue what is wrong…
Hi,
Thanks for the screenshot and update, could you post a link to where we can inspect the actual element also please?
Best regards,
Rikard
Hi Rikard
I was able to solve it in the meantime with some help. This is what I changed:
.column-white-background {
background-color: rgba(255,255,255,0.7);
color: black;
padding: 15px 15px 15px 15px;
}
Please close this thread now.
Best,
Michael