About 11,700,000 results
Open links in new tab
  1. HTML Table Padding & Spacing - W3Schools

    HTML Table - Cell Padding. Cell padding is the space between the cell edges and the cell content. By default the padding is set to 0. To add padding on table cells, use the CSS padding property:

  2. What are Cell Padding & Cell Spacing in HTML Table

    Feb 10, 2022 · In this article, we will discuss the cellpadding and cellspacing properties in HTML. These properties are used with the table tag for defining the spacing and padding of a table.

  3. HTML <table> cellpadding Attribute - GeeksforGeeks

    Dec 29, 2023 · The HTML <table> cell padding Attribute is used to specify the space between the cell content and cell wall. The cellpadding attribute is set in terms of pixels. By default, the padding is set to 0. Note: The <table> cellpadding Attribute is not supported by HTML5. Syntax: <table cellpadding="pixels"> Attribute Values:

  4. html - Set cellpadding and cellspacing in CSS? - Stack Overflow

    Jun 6, 2018 · For controlling "cellpadding" in CSS, you can simply use padding on table cells. E.g. for 10px of "cellpadding": padding: 10px; For "cellspacing", you can apply the border-spacing CSS property to your table. E.g. for 10px of "cellspacing": …

  5. CELLPADDING and CELLSPACING - HTML.com

    How to use CELLPADDING and CELLSPACING to give your tables a little extra space. Includes working examples and illustrations to help understand the attributes.

  6. How do I apply only horizontal cell spacing to a HTML table?

    Jun 6, 2012 · A better way than setting cellspacing="10" is to use CSS. You can use the following CSS to target the table's cell spacing. border-spacing: 10px 0; The first value specifies the horizontal spacing, and the second value specifies the vertical spacing. The border-spacing property is not recognized by IE 8 and earlier.

  7. HTML : Apply cellpadding and cellspacing to table with and …

    May 29, 2021 · For "cellspacing", you can apply the border-spacing CSS property to your table. E.g. for 10px of "cellspacing": table { border-spacing : 10px ; border-collapse : separate ; }

  8. HTML Table Tag | tr, td, rowspan, colspan, cellspacing cellpadding

    Apr 15, 2024 · HTML Tables are used to display tabular data in html. Table is defined within <table> tag and then table row <tr> and cells <td> or <th>. Table tag is the parent of table. Table can have rows, data, captions, colgroup, cols, etc.

  9. Table Cell Padding and Spacing with CSS and HTML

    Mar 29, 2025 · Learn how to style table cell padding and spacing in HTML and CSS for clean, responsive designs. Improve readability and with simple tips.

  10. How to Create Tables in HTML? - WebNots

    Nov 9, 2020 · Imagine creating a time table or a student mark sheet in a webpage without using HTML table tag. Well, once upon a time before table tag was evolved, people used to code with PRE tags (Preformatted text) to achieve this. Want to see how PRE tag works?.

  11. Some results have been removed
Refresh