How to Move <td> content focefully

Posted by Abhisekjani under HTML 5 on 8/28/2012 | Points: 10 | Views : 6634 | Status : [Member] | Replies : 2
Hi
In my page a <tr> is there inside that <td> is there i want to move the <td> 5px to right how to do it


<tr>
<td></td>
</tr>
means after 3-4 space the <td> should start i tried below code but its not working
<tr>&nbsp;&nbsp;
<td></td>
</tr>




Responses

Posted by: Atal.Upadhyay on: 8/28/2012 [Member] Starter | Points: 25

Up
0
Down
You may use combination of <TD> and colspan as below..

<table style="width: 100%; table-layout: fixed;"
title="myrable">
<tr>
<td width="25">
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan="2">
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>


Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shameer.Ali87 on: 8/28/2012 [Member] Starter | Points: 25

Up
0
Down
hi abhi,

you can add a simple css effect, i.e. padding-left: 5px; in the style tag of your html document...
hope it helps..

reply if u need any help...

thanks..

shameer ali shaik

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response