Hi friends,
Please give me the differences between cell spacing and cells padding in Table tag in HTML .
Please mention similarities and dissimilarities.
Thanks & Regards
Steve
<snip>
Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge. Sign up today to gain access to the combined insight of tens of thousands of members.
Hi friends,
Please give me the differences between cell spacing and cells padding in Table tag in HTML .
Please mention similarities and dissimilarities.
Thanks & Regards
Steve
<snip>
Last edited by dzine; Jan 19th, 2013 at 03:11 AM.
You can look up the standard in W3C.org.
Essentially, cell padding is like a buffer, or padding (hence the name) inside the cell. If you had a 20px X 20px cell and you had 5px cell padding, your available area inside the cell would only be 10px X 10px.
Cell spacing is the spacing (hence the name) between cells. So if you have a row of 5 20px X 20px cells with 0 cell spacing their width will be 100px, if you add in 5px Cell spacing the width will be 120px.
Both have uses depending on the design.
The more modern way is to use padding and position placement with CSS 3.0 styled elements and HTML 5 mark up.
The difference of the two can be determined straight from their definition. Cell spacing refers to the space between two cells of the table whereas cell padding is defined as the space between the text within a cell and the cells border.
In simple language. Cell spacing is the space given outside a cell whereas cell padding is the spacing within a cell
Cell padding is the space between the text written in a cell and the border of the cell.
Cell spacing is the space between the two cells of the table.
Become Part of This Conversation
Join NowFor Free!