robert: tabellenformatierung

hi,

wieso funtioniert die tabellenformatierung nicht mit css ?

zb:
table { border:0px; padding:5px; margin:0px; background-color:#0000ff }

padding (für cellpadding) und margin (für cellspacing) werden leider ignoriert.
padding funtioniert nur in td, tr.

gibts eine andere methode, oder sind die heutigen browser zu dumm dazu?

mfg
robert

  1. Hi,

    table { border:0px; padding:5px; margin:0px; background-color:#0000ff }
    padding (für cellpadding) und margin (für cellspacing) werden leider ignoriert.

    cellpadding betrifft die Zellen. Daher muß es in der Zelle angegeben werden.

    gibts eine andere methode, oder sind die heutigen browser zu dumm dazu?

    cellspacing hat nichts mit margin zu tun.

    border-spacing und border-collapse sind die zuständigen CSS-Properties.

    cu,
    Andreas

    --
    Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
    http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/
    1. toll.  border-spacing wird vom ie  nicht interpretiert :(

      mfg
      robert