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
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.
Suzanne posted this at 23:10 — 14th December 2003.
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 posted this at 02:09 — 15th December 2003.
He has: 3,022 posts
Joined: Oct 2002
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 posted this at 23:13 — 14th December 2003.
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.