Cell Padding
You may wish to “cushion” your cell contents from their borders. We do this using the padding=""
property. Generally, we measure this padding in pixels, and again, this is something we’ll eventually do with CSS.
HTML
<style>
table, th, td {
border: 1px solid black;
padding: 5px;
}
</style>
- Previous
- Next