HTML Tabellen

HTML <table> cellpadding attribuut

  • Het cellpadding attribuut specificeert de ruimte tussen de rand van een cel en de inhoud.

Attribuut voorbeeld

zonder cellpadding
kop 1 kop 2
cel 1 cel 2
cel 3 cel 4
met cellpadding th 15px
kop 1 kop 2
cel 1 cel 2
cel 3 cel 4
  • Voor de code van het voorbeeld klik code
tip

Deze witruimte wordt gerekend bij de cel met de meeste inhoud (of grootste afbeelding) en geldt voor alle andere cellen in dezelfde rij / kolom !

Attribuut waarde

Waarde Beschrijving
pixels Specificeert de ruimte tussen de celwand en de celinhoud.

naar boven 

Opbouw

<table cellpadding="waarde"></table>
tip

Nog beter is deze ruimte te specificeren met CSS !

Browser ondersteuning

Internet Explorer Firefox Chrome Opera Safari

  • Het HTML <table> cellpadding attribuut wordt ondersteunt in de bekende browsers.
naar boven naar boven naar cellspacing attribuut
naar boven naar het table cellspacing attribuut