MHenke on Mar 3, 2006 at 12:52:36 AM (# 1) This message has been edited.You've a flaw in your initialisation. You hide only "lyr1" - "lyr3" per initial CSS rule. There's a comment how to make it right, but you may havn't looked at the source...
/* Include id's for all your layers here, with commas between. */
#lyr1, #lyr2, #lyr3 { position:absolute; visibility:hidden; left:0; top:0; z-index:1 }
You also may want to think about to simplify you CSS, e.g (untested).
/* Include id's for all your layers here, with commas between. */
div.swapLayer { position:absolute; left:0; top:0; visibility:hidden; overflow: auto; z-index:1; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; border: 2px solid #000000; width: 490px; height: 235px; /* margin-bottom: 50px; */ padding: 10px; }
With the corresponding HTML
<div align="left">
<div id="container"> <div class="swapLayer" id="lyr1"> <strong><font color="#CC0000">IRT</font></strong><br> <p>CRE provides Heat ... </p> <!-- ... -->
And, since you're already using CSS, you may want to think about to convert the HTML layout to CSS, that mix-up is always harder to manage.
|