Explain Cell Padding and Cell Spacing.
Explain Cell Padding and Cell Spacing.
Cell spacing and margin is the space between cells. Cell padding is space inside cells, between the cell border (even if invisible) and the cell content, such as text.
Cellpadding is the amount of space between the outer edges of the table cell and the content of the cell. Cellspacing is the amount of space in between the individual table cells.
Distance between two cells is Cell Spacing While within a Cell is Padding. https://sydneyconveyancingonline.com/
Mari-Marketing.com | Notjustwebsite.com | Feebam.com | Carolinarugandupholstery.com | Jaffermerchantcpa.com | Usedfitnesssales.com | Gofaithstrong.com | SheltonRoofingCompany.com | LilacAssistant.com | Brilliantglass.net | Hopcconfire.com | Smpaving.com | Intelligentofficesuite.com | ABCAutoShipping.com | VisitMiamiTours.com
Cell Spacing is the space between the cells and the Cellpadding is the space within the cells.
CellPadding specifies the space between the cell wall and the cell content.The cellpadding attribute of table is not supported in HTML 5.
Cellspacing specifies the space between the cells
Following is the example to understand better:
<html>
<head>
<style>table,th,td {
border: 1px solid black;
}</style>
</head>
<body>
This is CellSpacing
<table cellspacing="10">
<tr>
<th>Animals</th>
<th>Birds</th>
</tr>
<tr>
<td>Dog</td>
<td>Parrot</td>
</tr>
</table>
<br>
This is CellPadding
<table cellpadding="10">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
</body>
</html>
dnn software development companies:http://www.ifourtechnolab.com/dnn-software-development
.NET Developer At iFour Technolab Pvt Ltd
http://www.ifourtechnolab.com/
Cellpadding is the measure of space between the external edges of the table cell and the content of the cell. Cellspacing is the measure of space in the middle of the individual table cells.
Great knowledge you are shared guys
Cellpadding and cellspacing are two of the attributes which assist the controlling of the style and layout of the tables in web pages. Cellpadding creates whitespaces within a cell between the text and the cell border while cellspacing can be used to manage the space between the cells in a table.
|
Bookmarks