Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i have to show a textboxes for firstname , lastname, province , country , city. etc but i am not able to align them . i tryied to align them with spaces but not able to get the results.. the loook ugly. how to align them in proper way like below.

how to align them in that way

First Name: TextBox Control

Last Name: Texbox control
Posted
Updated 17-Feb-17 1:12am
v2

 
Share this answer
 
Use a table (html table) to do alignments for these values.
 
Share this answer
 
v2
Use DIV objects. Check this http://tinyurl.com/3shu3bb[^]

Cheers!
 
Share this answer
 
Comments
codegeekalpha 25-Sep-11 10:46am    
????
Mario Majčica 25-Sep-11 11:03am    
What is unclear? Just Google for some nice DIV tutorial!
<table></table>
tag is the preferable one.
It wont alter.try this one example

<table style="border-width:1px; border-color:Black ; border-style :groove ;"><tr>
<td><asp:label id="label1" name="User Name" runat="server" xmlns:asp="#unknown" /> </td>
<td><textbox id="textbox1" runat="server" /></td> // for new column
</tr>
<tr></tr> //for new row
</table>
 
Share this answer
 
Comments
codegeekalpha 26-Sep-11 15:19pm    
??

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