3 replies [Last post]
fluffysam
Offline
newbie
Last seen: 16 years 25 weeks ago
Joined: 2004-02-14
Posts: 4
Points: 0

I'm using a very basic scrollbox with the <div> tag, but I can't find out how to add cell padding. I've tried putting in "cellpadding:3" in a few places, but nothing happens.

Thanks! xD

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Cellpadding in &lt;div&gt;?

Hi fluffysam,
Divs respond to padding set in the style sheet.
padding:3px;

Hope that helps

fluffysam
Offline
newbie
Last seen: 16 years 25 weeks ago
Joined: 2004-02-14
Posts: 4
Points: 0

xD

Thanks! xD

raza
Offline
newbie
Last seen: 12 years 45 weeks ago
Timezone: GMT+2
Joined: 2004-02-17
Posts: 4
Points: 0

Cellpadding in &lt;div&gt;?

You can check out the box model from W3C site, it explains the differences between padding, border and margin.