Cell Spacing and Padding - HTML

There are two cell spacing options—padding and spacing—that you can control in your HTML tables. Cell spacing is the space between cells. Cell padding is the space

Tables too wide for their environment can get some help from scrollbars.

Tables too wide for their environment can get some help from scrollbars.

between the cell border and its contents. Refer for the relationship of cell padding and cell spacing to the table. Cell spacing is controlled with the cellspacing attribute and can be specified in pixels or percentages. When specified by percentage, the browser uses half of the specified percentage for each side of the cell. The percentage is of the available space for the dimension, vertical or horizontal. where the table’s cell spacing is set to 20%. Cell padding is controlled with the cellpadding attribute. As with cell spacing, you can specify padding in pixels or a percentage.

Cell spacing percentages.

Cell spacing percentages.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics