Setting table border style and cellpadding

  • Unknown's avatar

    Hello everyone. Can you please guide me how I set set cellpadding for the table. I have tried <table border=”1px” cellpadding=”5″> but its not working. I also want to change the table border style.
    Thanks

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Here is a sort of basic table:

    <table style="background-color:#f3ffff;border:15px solid #aaaaaa;padding:1em;" border="0" cellspacing="12">
    <tbody>
    <tr>
    <td>
    TEXT-1</td>
    <td>
    TEXT-2</td>
    <td>
    TEXT-3</td>
    </tr>
    </tbody></table>

    in ‘style’ you can change such things as: background-color, border width and color, text-alignment, width.
    Just play with the numbers…

  • Unknown's avatar

    If “cellpadding” won’t work, you can apply padding to each td tag:
    <td style="padding:5px;">

    “Want to change the table border style”? To what exactly?

  • Unknown's avatar
  • The topic ‘Setting table border style and cellpadding’ is closed to new replies.