Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good Practice on adding space between HTML /ASP.NET Control

I am now looking for any way on how to add space between controls in ASP.NET or HTML. Currently i am using A lot of &nbsp on my form just to add space between my controls.

For example:

<table>
<tr>
<td>
        <asp:TextBox ID="textbo1" runat="server" Visible="true" Width="50px"></asp:TextBox>
        &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 
</td>

<td>
         <asp:TextBox ID="textbox2" runat="server" Visible="true" Width="50px" ></asp:TextBox>
</td>
</tr>
</table>

Is there good practice for this or other way to do it.

Thanks in Regards

like image 807
BizApps Avatar asked Jan 27 '26 23:01

BizApps


1 Answers

Why dont you make use of CssStyle property called "Paddding" that will help you

for you case make use of padding-right

padding-right:10px;
like image 118
Pranay Rana Avatar answered Jan 30 '26 15:01

Pranay Rana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!