How to Remove the White Border Around Cells in an HTML Table

The white border around HTML table cells is a result of a border being established for the table. Many HTML design programs automatically configure a border anytime you create a new table, or it may have been manually configured. In addition, some older browsers may assume there is a border, unless specifically stated otherwise. To remove this white border, it's safest to manually enter code that specifically states the table should have no border. That way, there's no "misunderstanding" between your page and older browsers.

Instructions

    • 1

      Open your HTML page in any basic text editor, such as Notepad.

    • 2

      Locate the table in the code. The code should begin with the following code:

      <table

    • 3

      Change the "border" tag to read:

      border="0"

      If there is no border tag, enter it at the end of the "table" code, just before the closing ">" mark. As an example, the code might read:

      <table width="200" border="0">

    • 4

      Save the document and upload it to your website.

Related Searches:

Comments

Related Ads

Featured