How to get Java to fade in from white, not black

Discussion in 'JavaScript' started by tanyania, Jul 16, 2011.

  1. #1
    I have a simple fading gallery with five images. Before the first image fades in, the java shows a black block - no image there, so black. How can I make this white, rather than black?
     
    tanyania, Jul 16, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Find the id/class of the container and change it's background color.
    But that could be anywhere, we need to see the code first.

    It might look something like this:
    
    <div id='gallery' style='background-color: #000;'></div>
    
    Code (markup):
    Or the color may be in a stylesheet:
    
    #gallery {
       background-color: #000;
    }
    
    Code (markup):
    Or it could even be the background color of the main page.
     
    Cash Nebula, Jul 23, 2011 IP