Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have a textbox in my aspx page with its textmode="multiline"as below
C#
<asp:TextBox ID="txtAddress1" runat="server" Style="width: 280px; height: 50px;" TextMode="MultiLine">

But its width is different in ie and firefox.how to solve this issue?
Thanks..
Posted
Updated 24-Jul-13 23:42pm
v2
Comments
Dholakiya Ankit 25-Jul-13 5:39am    
this can not be possible
hasbina 25-Jul-13 5:40am    
?
hasbina 25-Jul-13 5:41am    
can you explain?
Dholakiya Ankit 25-Jul-13 5:52am    
give me id of two different browser
Dholakiya Ankit 25-Jul-13 5:52am    
what u see in mozilla and what u see in ie

Try using this
<asp:TextBox ID="txtAddress1" runat="server" CssClass="txt" TextMode="MultiLine">

C#
.txt
{
   height:10%;
   width:20%;
}

Regards..:laugh:
 
Share this answer
 
Comments
hasbina 25-Jul-13 6:06am    
@Rohan
sir..,no change..the firefox textbox width is little larger than ie
Thanks7872 25-Jul-13 6:53am    
Whats the version of ie?
 
Share this answer
 
Comments
hasbina 25-Jul-13 6:32am    
@ankit
there is no solution for the above problem
Dholakiya Ankit 25-Jul-13 6:36am    
ok then i would suggest to use javascript take window.innerwidth and adjust ur textbox according to that

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