Cannot put margin on tag with neither CSS nor cellspacing attribute

后端 未结 7 1723
感情败类
感情败类 2020-12-13 09:39

For whatever reason, I have been unable to get any table cells to have margin between them. I want the table cells to have a grey background colour (over a white page backgr

7条回答
  •  时光说笑
    2020-12-13 09:42

    This is a crude fix, but it works.

    If you create a

    with a margin of the size you want ..containing your existing , both using the same background or color you can set the margin of the outer table to be what you want.

    If you have a series of

    elements, create a inside the
    that you want to have a margin and again be sure that both the outer and inner
    have the same background or color.

    example from my blog at http://harrolds.blogspot.com which embeds a script to display quotations...

    Main table:

    Sen. Zell Miller (D-GA) RNC'04

    Liberators & Defenders
    RightWingStuff
    link source  http://www.cafepress.com/rightwingstuff

    提交回复
    热议问题