Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<td class="whiteboxtd">
                                               <asp:TextBox ID="txtconsul" CssClass="whitebxtxtbox" runat="server"></asp:TextBox>
                                                <asp:TextBoxWatermarkExtender ID="txtconsul_TextBoxWatermarkExtender"  WatermarkCssClass="whitebxtxtbox"
                                                    runat="server" Enabled="True" TargetControlID="txtconsul" WatermarkText="Name">
                                                </asp:TextBoxWatermarkExtender>
                                               </td>


XML
<td valign="top">
                                                   <asp:ImageButton ID="ImageButton2" runat="server"
                                                       ImageUrl="~/images/loginBTN.png" onclick="ImageButton2_Click"
                                                        CssClass="boxsrchbtn" />
                                               </td>



i want this both image button and textbox should be in one line...here imagebutton is going down..its not correctly aligned with textbox..please help me..
this is css of imagebutton..
C#
.boxsrchbtn
         {
            height:34px;
             }
Posted
Comments
Ankur\m/ 5-Feb-13 8:21am    
Does both your 'td' belongs to single 'tr' or are they in different tr's?
ujali 5-Feb-13 8:26am    
both td are in single tr
Ankur\m/ 5-Feb-13 8:27am    
In that case the html code is fine. Use Firebug to see what style is breaking. Or we will have to see the actual page to help you out.
ujali 5-Feb-13 8:22am    
both td are in single tr
[no name] 5-Feb-13 8:54am    
Try using CSS

hi!!!
you do like that.
<table>
<tr>
<td>
your text box
<td/>
<td>
your image button
<td/>
<tr/>
<table/>



if you have only one
<td></td>
so make split.and do like above.
 
Share this answer
 
v2
Comments
ujali 7-Feb-13 1:18am    
the problem is solved..
[no name] 7-Feb-13 1:23am    
good
Check the CSS code for following items and also check the height added in to it,

"whiteboxtd" applied to td of the textbox control
"whitebxtxtbox" applied to textbox control
 
Share this answer
 
v3
It is hard to tell unless we can see the rest of your CSS, but make sure your table row is wide enough to hold both <td>s by setting it's CSS 'width' value, and try the following:

CSS
.boxsrchbtn
{
   height:34px;
   display:inline;
}

.whitebxtxtbox
{
   display:inline;
}
 
Share this answer
 
v3
use ctrl K+D for formating text.
 
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