3 replies [Last post]
rbfree
Offline
Enthusiast
Last seen: 11 years 19 weeks ago
Timezone: GMT-7
Joined: 2007-12-19
Posts: 124
Points: 0

I'm trying to style my table so the content in the bottom row (my totals) has a padding-top and -bottom of say, 8 or 10 px. But, though other properties are rendered (font-weight, background-color), my padding isn't, even with an !important tag.

I've tried using a styled (class) footer with td elements and a styled (class) regular row with th elements, with no change in effect.

Is there a specificity rule I'm misunderstanding? Thanks 'gin.

CSS n00b

Triumph (not verified)
Anonymous's picture
Guru

Show some code. Are you

Show some code. Are you applying the padding to the tfoot or to the tr/td inside?

rbfree
Offline
Enthusiast
Last seen: 11 years 19 weeks ago
Timezone: GMT-7
Joined: 2007-12-19
Posts: 124
Points: 0

that was the nudge I needed

Thanks Triumph,

That was the reminder I needed. I'm padding the content, not the containing element. Hence, creating a class for the first td in the row worked. Applying a class to the row did not work.

CSS n00b

Triumph (not verified)
Anonymous's picture
Guru

(No subject)

:thumbsup: