Hi,
I created a div(search result term bar) which should display only when user enters a search term and it should appears in center of the layout. See the screen shot 1) before and 2) after to get a clear idea.
I used the css style like below
search_list{ margin:0 auto; width:1000px; }
So that i appears center in all resolutions.
Now i implemented an asp.net panel ajax control to show the div only when user enters the search term.
Here below is my code:
<asp:Panel runat="server" ID="pnlsearchinfo">
<div class="search_list" id="SearchText" visible="false" runat="server">
<%--<div class="search_text">Search Result for </div>--%>
<div class="search_term">
<asp:Label ID="lblsearchtxt" runat="server" Text=""></asp:Label></div>
<div class="search_return">
<asp:ImageButton ID="IbtnSearchClose" ImageUrl="images/blu-close.jpg" runat="server" align="absmiddle" OnClick="IbtnSearchClose_Click" /><asp:LinkButton
ID="lnkSearchClose" runat="server" OnClick="lnkSearchClose_Click" >Return to Full List</asp:LinkButton></div>
<br class="clr_flt" />
</div><!-- end search_list --></asp:Panel>
<cc1:AlwaysVisibleControlExtender TargetControlID="pnlsearchinfo" ScrollEffectDuration="1"
ID="AlwaysVisibleControlExtender1" VerticalOffset="225" runat="server" Enabled="true">
</cc1:AlwaysVisibleControlExtender>
But the problem is the margin:0 auto; is working fine in IE(search result term bar is centered). But in firefox its throwing issue(aligned to left) screenshot.
When i use Horizonaloffset its working in firefox. But it's not resolution friendly. Can i center the search result term bar with some other controls?
Thanks in advance