Cell Padding

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Can you add cell padding to one cell? If you can, whats the code?

Thanks

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

No.

However, you can add PADDING to one cell.

td#thecellinparticular {
padding: 5px;
}

And in the HTML

content will have 5px padding all around it

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Suzanne wrote: No.

However, you can add PADDING to one cell.

td#thecellinparticular {
padding: 5px;
}

And in the HTML

content will have 5px padding all around it

Just to add to that, if you want to do that to more than one cell i.e. in a table with two cells with padding and the rest with out be sure to use a class not an id

e.g.

<strong>td.thecellinparticular {</strong>
    padding: 5px;
  }

<td <strong>class="thecellinparticular"</strong>>content will have 5px padding all around it</td>
'

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Oh, that is what I meant, Thanks a lot

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.