HTML/Overzicht attributen/cellpadding
Uit Wikibooks
|
|
|
| Inhoudsopgave
Inleiding |
Inhoud |
[bewerk] Functie
Met dit attribuut kun je de ruimte bepalen tussen de inhoud en de rand van een cell.
[bewerk] Waarde
Pixels of percentages. Pixels geeft een vaste waarde op. Percentages bepaalt de ruimte op basis van de grootte van het tabel.
[bewerk] Voorbeeld
HTML-code: Een voorbeeld van het gebruik van het cellpadding attribuut
<table border="1" cellpadding="10px"> <tr> <td>Wikipedia</td> <td>Wikibooks</td> </tr> <tr> <td>Wikiquote</td> <td>Wikinews</td> </tr> </table>
| Wikipedia | Wikibooks |
|---|---|
| Wikiquote | Wikinews |
Zonder cellpadding:
| Wikipedia | Wikibooks |
|---|---|
| Wikiquote | Wikinews |
[bewerk] Wordt gebruikt bij
[bewerk] Meer informatie
- w3c (Engels)
| HTML attributen |
|
abbr | accept | accept-charset | accesskey | action | align | alt | archive | axis | background | bgcolor | border | cellpadding | cellspacing | char | charoff | charset | checked | cite | class | classid | clear | code | codebase | codetype | color | cols | colspan | compact | content | coords | data | datetime | declare | defer | dir | disabled | enctype | face | for | href | id | lang | style | title | width |

