Results 1 to 3 of 3

Thread: Background color for dhtmlmodal using div

  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Background color for dhtmlmodal using div

    I'm using dhtmlmodal with a hidden div but I can't seem to set a background color. When I unhide the div it shows up on my page with a background color of red. Here's the div definition: <div id="photofull" class="photofullimage1" style="text-align: center;" style="background-color:red">
    I change the div to hide it: <div id="photofull" class="photofullimage1" style="display:none" style="text-align: center;" style="background-color:red">
    I execute dhtmlmodal - photofullwin=dhtmlmodal.open('photofullid', 'div', 'photofull', '', 'width=' + (screenwidth-50) + 'px,height=' + (screenheight-250) + 'px,left=0px,top=0px,center=1,resize=0,scrolling=1');
    and my window opens with a white background. I don't see anything about background color being a parameter for dhtmlmodal.

    Any assistance will be greatly appreciated.
    David

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    Try editing dhtmlwindow.css. The pertinent lines should be:

    Code:
    .dhtmlwindow{
    position: absolute;
    border: 2px solid black;
    visibility: hidden;
    background-color: white;
    }
    
    .drag-contentarea{ /*CSS for Content Display Area div*/
    border-top: 1px solid brown;
    background-color: white;
    color: black;
    height: 150px;
    padding: 2px;
    overflow: auto;
    }

  3. #3
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thank you!

    Changing the CSS took care of the problem. Is there documentation anywhere covering the different sections in dhtmlwindow.css?

    Other than the webpage for dhtmlmodal window, are there any published examples or documentation?

    Thank you!
    David

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •