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

Cellpadding

Morgain

Well-known member
#1
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

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

Brogan

XenForo moderator
Staff member
#2
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>