Link to home
Start Free TrialLog in
Avatar of micro_learner
micro_learner

asked on

CSS how to remove transperant background

Hello,
I have a pop box that has a transparent background (I think it inherits the css from the parent div's) due to which the background becomes confusing.

How should I avoid a Tranasparent background for only the pop-box anything that I add to the div to make it non transparent ?
Avatar of hielo
hielo
Flag of Wallis and Futuna image

assuming the popup div had id="popup", then you just need to specify a background specifically for that div:
#popup{
 background-color:white;
 background-image:url();
}
Avatar of micro_learner
micro_learner

ASKER

Thank you, but even when I add an image as the background, the image itself is being transparent ..odd but true.I can see the background through it
It sounds like you changed the opacity an an ancestor element.
>>It sounds like you changed the opacity an an ancestor element.

How do I solve it ? is there a way I can do something in the child ?
Please help me out guys
 
It's difficult to help without seeing your code.

You would remove the opacity declarations from the ancestor. Opacity is inherited and there is nothing you can do to override it on descendants.
ASKER CERTIFIED SOLUTION
Avatar of Rapturer
Rapturer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial