Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Boarder width 1

Status
Not open for further replies.

Wolfenstein

Technical User
Joined
Sep 15, 2001
Messages
1
Location
US
How can I get the table boarder width smaller.. it's on "1" but it looks like 2 lined boarders.. Is there a way to make it smaller.. like one single line
 
Hello wolfenstein!

Yes, there is a way :)

1) insert first table with 1 row and 1 column;
2) set Border="0";
3) set CellSpace="0";
4) set whole table background color (for a example, BG Color="#993300");
5) put cursor inside the table and insert there the real table you need with necessary number of rows and columns;
6) set CellSpace="1" and Border="0" of the second table;
7) set each cell background color, usually it's like a page bg color - white
or set each row background color (NOTE: select only part of cells or rows in a time and then a rest, because if you select all cells or rows in your table and set bg color this color will be applied to the whole table not to each cell or row - in this case the example will work in NC not in IE);

Now you have table with 1px border that looks the same in IE and NC!

Good Luck!


P.S. Here is the HTML code:
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>
<table width=&quot;400&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#993300&quot;>
  <tr>
    <td>
      <table width=&quot;400&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;0&quot;>
        <tr bgcolor=&quot;#FFFFFF&quot;>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr bgcolor=&quot;#FFFFFF&quot;>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr bgcolor=&quot;#FFFFFF&quot;>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr bgcolor=&quot;#FFFFFF&quot;>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
 
Thanks Eugene, solved my problem as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top