ProgressBar.css

/*
 
 File: ProgressBar.css
 
 Abstract: Defines CSS properties for the ProgressBar sample.
           Uses the CSS z-index property to overlay a progress bar and percentage number
           on top of a set of images. 
 
 Version: <1.0>
 
 Disclaimer: IMPORTANT:  This Apple software is supplied to you by 
 Apple Inc. ("Apple") in consideration of your agreement to the
 following terms, and your use, installation, modification or
 redistribution of this Apple software constitutes acceptance of these
 terms.  If you do not agree with these terms, please do not use,
 install, modify or redistribute this Apple software.
 
 In consideration of your agreement to abide by the following terms, and
 subject to these terms, Apple grants you a personal, non-exclusive
 license, under Apple's copyrights in this original Apple software (the
 "Apple Software"), to use, reproduce, modify and redistribute the Apple
 Software, with or without modifications, in source and/or binary forms;
 provided that if you redistribute the Apple Software in its entirety and
 without modifications, you must retain this notice and the following
 text and disclaimers in all such redistributions of the Apple Software. 
 Neither the name, trademarks, service marks or logos of Apple Inc. 
 may be used to endorse or promote products derived from the Apple
 Software without specific prior written permission from Apple.  Except
 as expressly stated in this notice, no other rights or licenses, express
 or implied, are granted by Apple herein, including but not limited to
 any patent rights that may be infringed by your derivative works or by
 other works in which the Apple Software may be incorporated.
 
 The Apple Software is provided by Apple on an "AS IS" basis.  APPLE
 MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
 THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
 FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
 OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
 
 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
 MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
 AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
 STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 
 Copyright (C) 2008 Apple Inc. All Rights Reserved.
 
 */ 
body 
{
    margin-left: 2px;
    margin-top: 20px;
    padding: 0px;
    font-size: 14px;
    font-family: 'Lucida Grande', Verdana, sans-serif;
    font-weight: bold;
    color: red;
    width: 320px;
    background-color: black;    
}
 
/* Defines properties for the images div */
#images
{
    top: 50px;
    left: 50px;
 
    /* This places the images behind the progress bar and percentage number */
    z-index: 1;
}
 
/* Defines properties for the canvasBackground div. Use the z-index to overlay 
   the div's content (progress bar and percentage number) on top of the images. 
 */
#canvasBackground
{
    top: 18px;
    left: 10px;
    height: 200px;
    width: 303px;
 
    /* Makes this div transparent */
    opacity: 0.75;
    position: absolute;
    background-color: black;
 
    /* This places this div's content on top of the images */
    z-index: 2;
}
 
/* Defines properties for the percentage div. Set its z-index to 3 so its content
   can be on top of all other divs. 
*/
#percentage
{
    top: 70px;
    width: 300px;
    text-align: center;
 
    /* Vertically align text in the div */
    line-height: 57px;
    position: absolute;
 
    /* This places the percentage number on top of the progress bar */
    z-index: 3;
}
 
/* Defines properties for all images on the page */
img
{
    padding: 1px;
    margin-bottom: 4px;
    margin-left: 8px;
 
    /* Draws a border around each image */
    border: 1px solid #cccccc;
    /* Makes each image 85 pixels high and wide */
    width: 91px;
    height: 91px;
}
 
#message
{
    color: white;
    text-align: center;
}