CSS: The background color of modal-box is not changing and it is not scrollable

Ask a question
1

I want to change the background color of my modal-content. All code is working but background color always appears white. Also the box is not scrollable. I want to scroll it when I click inside the box.

.modal {
    font-weight: bold;
    display: none;
    position: fixed;
    z-index: 1;
    padding: 50px 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    / background-color: rgb(0, 0, 0, 0.4);
}

.modal-content {
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    text-align: center;
    background-color: transparent;
}
Coin iconoffer bounty
add comment

0 Answer

Your Answer