I have a tooltip set up with just css and its working fine if the code is not wrapped in <li> tags
my css is
Code:
<style type="text/css">
a.tt{
position:relative;
z-index:24;
color:#3CA3FF;
font-weight:bold;
text-decoration:none;
}
a.tt span{ display: none; }
/*background:; ie hack, something must be changed in a for ie to execute it*/
a.tt:hover{ z-index:25; color: #aaaaff; background:;}
a.tt:hover span.tooltip{
display:block;
position:absolute;
top:0px; left:0;
padding: 15px 0 0 0;
width:200px;
color: #993300;
text-align: center;
}
a.tt:hover span.top{
display: block;
padding: 30px 8px 0;
background: url(bubble.gif) no-repeat top;
}
a.tt:hover span.middle{ /* different middle bg for stretch */
display: block;
padding: 0 8px;
background: url(bubble_filler.gif) repeat bottom;
}
a.tt:hover span.bottom{
display: block;
padding:3px 8px 10px;
color: #548912;
background: url(bubble.gif) no-repeat bottom;
}
</style>
and if my code is like so
PHP Code:
<a href="#" class="tt">
<?php echo $serv->name?>
<span class="tooltip">
<span class="top"></span>
<span class="middle"><?php echo $serv->description?></span>
<span class="bottom"></span>
</span>
</a>
<span class="price">£<?php echo $serv->price?></span>
<span class="filler"> </span>
but not if the above code is wrapped in <li> tags like so
PHP Code:
<li><a href="#" class="tt">
<?php echo $serv->name?>
<span class="tooltip">
<span class="top"></span>
<span class="middle"><?php echo $serv->description?></span>
<span class="bottom"></span>
</span>
</a>
<span class="price">£<?php echo $serv->price?></span>
<span class="filler"> </span></li>
what do i need to change in my css code to get it working properly
many thanks