Question:

How can I make a div non-transparent?

by  |  earlier

0 LIKES UnLike

I have a div that appears over text and input boxes on my webpage. It is hard to read the content of the div, because I can see the text and input boxes below it. Is it possible to make the div non-transparent, so that I cannot see anything underneath it while the div is visible?

 Tags:

   Report

2 ANSWERS


  1. Set a background color.

    <div style="background-color: white;">content goes here</div>


  2. If there isn't a background color, add one.

    In CSS, you could add this property to the element:

    opacity: 1;

    If it still doesn't work, try this:

    opacity: 1 !important;

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions