1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.


Discussion in 'Styling and Customization Questions' started by Morgain, Dec 9, 2011.

  1. Morgain

    Morgain Well-Known Member

    I used a table on an XF Page and the cellpadding had no effect.
    I got what I wanted by adding a border same colour as the background. But it was odd that

    <table cellpadding="10">
    had no effect.
    What am I expected to do here?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add the padding to the cell, using a CSS class, like so:
    table_cell {
    padding: 2px 3px;

    Then construct the table using the class, like this:
    <td class="table_cell">Contents</td>

Share This Page