I have inserted a form into a website I'm building. I have aligned it to the right : <TABLE ALIGN="right" BORDER="0" CELLSPACING="1"> Now, how can I make it so that the form isn't directly up against the right hand side. In other words, could I use padding, and if so how would I do it? I would like the form to stay roughly about an inch from the right hand side of the screen. Thanks!
you can add right-padding to your <td> that contains the form so for example.. <TABLE ALIGN="right" BORDER="0" CELLSPACING="1"> <tr> <td style="padding-right:10px"><form ...></form> </td> </tr> </table> HTML: would add 10 pixels space between the form and the td
I would recommend doing this in CSS instead of in the table. This way you can reference items later and have multiple tables and forms using it throughout the site. table { float:right; } form { padding-right:10px; } Code (markup):
This discussion ignores the basic question: Why are tables being used for this, in the first place? cheers, gary