Can you have cellpadding or spacing just on the top/ bottom as opposed to all (T, B, L, R) ?
The cell padding attribute places spacing around data within each cell. The cell spacing attribute places space around each cell in the table.
The HTML <table> cellspacing Attribute is used to specify the space between the cells. The cellspacing attribute is set in terms of pixels. Attribute Values: pixels: It sets the space between the cells in terms of pixels.
The cellspacing attribute was used to control the amount of space between cells of a table. This attribute has been deprecated, and if you want to add space between table cells you can do so with CSS.
Cell padding is the space between cell borders and the content within a cell. To set cell padding in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <table> tag, with the CSS property padding.
CSS?
td { padding-top: 2px; padding-bottom: 2px; }
There is css:
table { border-spacing: 40px 10px; }
for 40px wide and 10px high
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With