

/* assume intended width is 350px with 15px image gap on either side and 25px in-image padding*/
.measure { width: 700px; background: blue; margin: 20px auto 0; } /* max image width inc outside gap = measure2 + outside gap */
.measure2 { width: 640px; background: red; margin: 0 auto 0; }    /* Interior Image = max interior width excluding drop shadows/glows */
.measure3 { width: 540px; background: green; margin: 0 auto 0; }  /* Interior padding = max interior width */
.measure, .measure2, .measure3 {
    font-size: 62.5%;
    text-align: center;
    padding: 1px 0 2px;
    color: #fff;
}

/* set the image to use and establish the lower-right position */
.cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2 {
    background: transparent url(demobox2.png) no-repeat bottom right;
    margin: 0;
    padding: 0; 
}

.cssbox {
    width: auto !important;   /* intended total box width - padding-right(next) */
    width: auto;              /* IE Win = width - padding */
    padding-right: 15px;       /* the gap on the right edge of the image (not content padding) */
    margin: 20px auto;         /* use to position the box */
}

/* set the top-right image */
.cssbox_head {
    background-position: top right;
    margin-right: -15px;       /* pull the right image over on top of border */
    padding-right: 40px;       /* right-image-gap + right-inside padding */
}

/* set the top-left image */
.cssbox_head h2 {
    background-position: top left;
    margin: 0;                 /* reset */
    border: 0;                 /* reset */
    padding: 25px 0 15px 40px; /* padding-left = image gap + interior padding ... no padding-right */
    height: auto !important; 
    height: 1%;                /* IE Holly Hack */
}

/* set the lower-left corner image */
.cssbox_body {
    background-position: bottom left;
    margin-right: 25px;        /* interior-padding right */
    padding: 15px 0 15px 40px; /* mirror .cssbox_head right/left */
}


/* Misc Text formatting */
.cssbox_head h2 {
    color: white;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 16px;      /* this is tricky if box width is in ems */
    text-align: center; 
}
.cssbox_body p {
    margin: 0 0 20px;
}
.cssbox_body a, .css_body a:hover {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-decoration: underline;
}

code { 
    white-space: pre; 
}

