Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1037636

    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

    #1038376

    Hey Michael,

    Where can we see the result you are getting?

    Best regards,
    Rikard

    #1038543

    Hi Rikard

    Please find a link to a screenshot showing the situation in the private content section.

    Thanks a lot
    Michael

    #1039260

    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…

    #1039541

    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

    #1039908

    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

    #1039948

    Hi Michael,

    Great, glad you found a solution and thanks for sharing. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Half transparent column: image should not be transparent’ is closed to new replies.