asp.net - How to show DIV just on top of button -


i have custom control, has button + image, if image(down arrow) clicked, div should display, dropdownlist.

however, pushing page contents down display div. how fix this.

  1. it should behave dropdown
  2. list should display on top of button instead button

    <table id="container" border="0" cellpadding="0" cellspacing="0"> <tr>     <td>         <asp:button id="btnpost" runat="server" cssclass="postbutton" onclick="btnpost_click" />         <asp:button id="btndropdown" runat="server" cssclass="dropdownbutton" onclick="btndropdown_click" />     </td> </tr> <tr>     <td>         <div runat="server" id="divdropdownpanel" visible="false" style="text-align: left;             overflow: scroll; float: left; border: thin solid lightgrey; width: 160px; height: 120px;             background-color: #ffffff; position: absolute; z-index: 999;">             <asp:repeater id="rptdropdowncontent" runat="server" onitemdatabound="rptdropdowncontent_itemdatabound">                 <headertemplate>                     <table>                 </headertemplate>                 <itemtemplate>                     <tr>                         <td align="left">                             <asp:checkbox id="chkchannel" runat="server" />                         </td>                     </tr>                 </itemtemplate>                 <footertemplate>                     </tr> </table>                 </footertemplate>             </asp:repeater>             <br />         </div>     </td> </tr> 


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -