Insert a tab or spaces in html

This question already has an answer here:

  • Set cellpadding and cellspacing in CSS? 26 answers

  • 你可以用CSS为你的td添加填充:

    td {
      padding-right: 30px;
    }
    <table>
      <tr>
        <td><a href="#">Hello</a></td>
        <td>Goodbye</td>
      </tr>
      <tr>
        <td><a href="#">Hola</a></td>
        <td>Adios</td>
      </tr>
    </table>

    `&nbsp;` is a space
    `&#09;` is a tab
    

    Just insert them where you want

    For the CSS, you should use the padding property, there are plenty of tutorials on the web, and samples


    You mean visual whitespace?

    In that case, check this link for:

  • How to add styles for a table
  • The paragraph Table Padding specifically.
  • Basic CSS isn't that hard.

    链接地址: http://www.djcxy.com/p/16942.html

    上一篇: CSS:如何将表单元格边距设置为0?

    下一篇: 在html中插入一个或多个空格