Table padding
Is there a way to set cellpadding of a single cell instead of setting it for all of them? Or am I going to have nest a table?
Thanks,
~Joe~
Is there a way to set cellpadding of a single cell instead of setting it for all of them? Or am I going to have nest a table?
Thanks,
~Joe~
Renegade posted this at 05:43 — 17th July 2005.
He has: 3,022 posts
Joined: Oct 2002
You can give the TD a single class and then set it with CSS, for example:
<td class="extra-padding">Hello</td>
And the CSS to go with it:
.extra_padding {
padding:5px;
}
Alternatively, if it's just a once off thing, you can do this:
<td style="padding:5px;">Hello</td>
But, I recommend that you put it in a class.
demonhale posted this at 07:03 — 17th July 2005.
He has: 3,278 posts
Joined: May 2005
Yeah CSS classes would do the trick...
or CSS without tables...
or Combination...
2020-Graphics posted this at 21:16 — 17th July 2005.
He has: 83 posts
Joined: Feb 2005
Thanks a ton Renegade. It did the trick.
I know I should be using all CSS but I always end up going back to tables since im not a huge coder and tables are easy.
Whats a good site that I can go to get "primers" on page layouts with CSS? Although I am just about finished with the site so maybe I will just leave the tables for now.
Renegade posted this at 02:37 — 18th July 2005.
He has: 3,022 posts
Joined: Oct 2002
What about CSS Zen Garden?
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.