what is wrong with my loop????
I have this loop that works fine in firefox, of course, but not so well in ie.
Here is the css for it:
.menu {margin:9px 0px 0px 0px; z-index:999999;}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {padding:0;margin:0;list-style-type:none;}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
position:relative;
display:inline;
}
/* style the links for the top level */
.menu a, .menu a:visited
{
text-decoration:none;
border:1px #CCCCCC solid;
width:112px; height:112px;
padding:0px 5px 0px 5px;
margin:0px 7px 15px 0px;
display:block;
}
.menu a:hover
{
text-decoration:none;
border-width:1px;
border-color:#666666;
border-style:solid;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {width:149px; w\idth:138px;}
.menu li li {
position:relative;
background:#FFFFFF;
border:1px #666666 solid;
width:269px;
padding:0px 0px 45px 0px;
}
.menu p {
position:relative; left:20px; top:10px;
display:inline;
}
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul.drop2 {
visibility:hidden;
position:absolute;
width:300px;
top:40px;left:-70px;
z-index:99999;
}
/* another hack for IE5.5 */
* html .menu ul ul.drop {top:30px;t\op:31px;}
/* another hack for IE5.5 */
* html .menu ul ul.drop2 {top:30px;t\op:31px;}
/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0; border-collapse:collapse;}
/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{}
.menu :hover > a, .menu ul ul :hover > a {}
/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul{visibility:visible; }
Here is the markup:
<div class="menu">
<ul>
<cfloop query="searchNarrow_prods" StartRow="#URL.StartRow#" EndRow="#EndRow#">
<cfoutput>
<cfset style="drop2">
<li class="drops" style=""><a href="productdisplay.cfm?category_id=#searchNarrow_prods.cat_id#&subcat_id=#searchNarrow_prods.subcat_id#&sku=#searchNarrow_prods.sku#&mw=#searchNarrow_prods.mw#" title="#searchNarrow_prods.product_name#" style="background: url(#thumbsfolder##sku#.jpg) center no-repeat;"></a>
<!--[if !IE]>-->
<ul class="#style#">
<li>
<p>
<b>Product:</b> #product_name#<br />
<b>Price:</b> #LSCurrencyFormat(price)#<br />
<b>Item Number:</b> #sku#
</p>
<img src="#prodpicsfolder##sku#.jpg" width="220px" style="position:relative; left:23px; top:30px;" />
</li>
</ul>
<!--<![endif]-->
</li>
<cfset counter = counter + 1>
</cfoutput>
</cfloop>
</ul>
</div>
Everytime you rollover the first link a box pops up presenting the information in the second ul tags. In ie it makes it where the box appears behind all the first links. Why is this? Can anyone help???
Here is a link to see it in action.
http://www.karavelshoes.com/loopproducts.cfm?category_id=1&mw=1
