Apply solid white color to div

225 views Asked by At

I want to apply solid white background color, so that the text behind it should not be visible.

Attaching screenshot for reference. enter image description here

So, basically I have a header with a dropdown and when I am clicking on the dropdown the text from the body is visible at the back.

.dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}
1

There are 1 answers

0
Shubham Nagota On BEST ANSWER

I was able to do that by keeping mix-blend-mode to unset.