Re: [CSS 2.1] 'margin-...' in properties index

Joris wrote:

>This is probably off-topic but... does that mean there
>is no way of expressing the cellspacing/cellpadding
>attributes of <table> in css ?

I think there is a way:


cellspacing="N" 

  translates to 

{ border-collapse: separate; border-spacing: Npx; } 

on the <table> element, and


cellpadding="N"

  translates to

{ padding: Npx; } 

on the <cell> element. 'padding' is allowed on internal table elements,
it's only 'margin' that is not.

Christian

Received on Saturday, 15 February 2003 11:19:51 UTC