Gunnar Bittersmann: Tabellenrand mit Abstand?

Beitrag lesen

@@fabi:

nuqneH

»» Hä? Was meinst du mit Rand? Einen Rahmen?
Ja genau, sorry wegen der schlechten Ausdrucksweise.

table  
{  
    border: 42px solid #F00;  
}

Den Abstand des Rahmens zum Inhalt musst du wohl mit 'padding' für die Tabellenzellen regeln:

td:first-child, th:first-child  
{  
    padding-left: 42px;  
}  
  
td:last-child, th:last-child  
{  
    padding-right: 42px;  
}  
  
tr:first-child td, tr:first-child th  
{  
    padding-top: 42px;  
}  
  
tr:last-child td, tr:last-child th  
{  
    padding-bottom: 42px;  
}

Für alte IEs evtl. per CSS-Expressions.

Qapla'

--
Bildung lässt sich nicht downloaden. (Günther Jauch)