jasonc Posted July 31, 2009 Share Posted July 31, 2009 I wish to have my tables TD elements indented by 4px but can not seem to get it right. <style> td.hpm { margin-left: 4;}; </style> <table width="82%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#FFFFFF" style="border-collapse: collapse"> <tr> <td class="hpm" width="100%"><font face="Arial" size="2" color="#003399">Your Link</font></td> </tr> <tr> <td class="hpm" width="100%"><font face="Arial" size="2" color="#003399">Your Link</font></td> </tr> </table> can someone please tell me what it is that i could be doing wrong. Quote Link to comment Share on other sites More sharing options...
haku Posted July 31, 2009 Share Posted July 31, 2009 I can tell you what you are doing wrong: 1) You are using deprecated tags (<font>) and deprecated attributes (align) 2) You are trying to add margins to indent td tags (can't be done) 3) You are setting the margin to 4. In CSS, you have to say four of something - pixels, millimiters, inches etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.