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



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?


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>