Click to See Complete Forum and Search --> : [RESOLVED] background-color not showing?


webguy1977
10-28-2008, 11:31 AM
Hello,

I have been trying to figure this out, but have been unsuccessful. I am using a modalPopupExtender, but when the popup comes up, my background is still active. I suspect it has to be something in my css file, but would appreciate some help on this. I suspect it is the css causing this, but haven't been able to figure out why? Float maybe?

Here is the code for the MPE:

<cc1:ModalPopupExtender ID="MPE1" runat="server"
TargetControlID="btnShowModalPop"
PopupControlID="divPop"
BackgroundCssClass="modalBackground"
PopupDragHandleControlID="panelDragHandle"
DropShadow="true"/>


Here is the code in my css file:

.modalBackground {
background-color:Gray;
filter:alpha(opacity=70);
opacity:0.7;
}

.modalPop {
background-color:Gray;
border-width:3px;
border-style:solid;
border-color:Black;
padding:0;
width:250px;
color:White;



}

.drag
{
background-color:#ff0000;
cursor: move;
border: solid 2px white;



}

webguy1977
10-28-2008, 01:18 PM
I found the issue by referencing a blank css file and slowly adding statements in. It was a combination of the following which prevented the backgroundcssclass to not be shown propertly:

#body div div { background: url(images/body_tr.gif) top right no-repeat; }

#body div div div { background: url(images/body_bl.gif) bottom left no-repeat; }
#body div div div div{ background: url(images/body_br.gif) bottom right no-repeat; }


#body div div div { background: url(images/body_bg.gif) bottom left no-repeat; }
#body div div div div { background: url(images/body_bg.gif) bottom right no-repeat; }


#body .inner div { background: none; }

I ended up add these bg imgs in my master page div tags directly and is working fine.....for now :P