Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using asp.net,C# 2008 and linq to sql.I am want to show tooltip contains an image,feature of product when mouse over id of product
<asp:DataList ID="DataList1" runat="server" RepeatColumns="4">
    <ItemTemplate>
    <div id="rollover"><a><%#Eval("id") %><span><img alt="" src="<%#"folder/"+Eval("image") %>" align="left"/>note<br /><%#Eval("feature") %></span>
    </a>
    </div>
    </ItemTemplate>
    </asp:DataList>

my css:
#rollover a
{
    text-decoration: none;
}
#rollover a span
{
    visibility: hidden;
    display: block;
    position: absolute; /**adjust disjointed text position in % or px**/
    left: 10%;
    color: #FFFFFF;
    background-color: #666699;
    border: 2px solid silver;
    padding: 5px;
}
#rollover a:hover span, #rollover a:active span, #rollover a:focus span
{
    visibility: visible;
    position: absolute;
}

#rollover a:hover, #rollover a:focus
{
    text-decoration: none;
    color: #FF6600;
    visibility: visible;
}

Tooltip displayed when the mouse over id.When I select the product in the fourth column,position of tooltip doesn't change.It must appear in front of the id product 4.I just want to use css.Help me.
Posted

1 solution

This link will absolutely help you

http://www.bosrup.com/web/overlib/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900