Page 1 of 1

How to set table's style?

Posted: Fri Aug 25, 2006 6:02 pm
by jimmychuang
Hi,

I want to set a table's cellpadding & cellmargin both=0.

How can I set it up?

You can see what I just did below, and it won't make a table's cellpadding&cellmargin to zero.

    table#banner {
        width: 760px;
        margin:  0px 0px 0px 0px;
cellpadding: 0;
cellspacing: 0;
        text-align: center;
  border-right: 0px;
  border-left: opx;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
    }

Re: How to set table's style?

Posted: Fri Aug 25, 2006 6:12 pm
by tsw
see the definitive source

http://www.w3.org/TR/CSS21/tables.html