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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this bad? <td><td>fd</td></td>

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
I have a table and I want to write two cells inside of one.

Is it bad coding for me to write
<tr>
<td>
<tr>
<td>cell1</td><td>cell2</td>
</tr><tr>
<td>cell1</td><td>cell2</td>
</tr>
</td>
</tr>

My table is being coded in a mildly complicated sequence which I don't want to get into but this will not give me the desired result
<tr>
<td>cell1</td><td>cell2</td>
</tr><tr>
<td>cell1</td><td>cell2</td>
</tr>
 
If you want to nest tables like this then try this:
Code:
<table>
<tr>
  <td>
  <table cols=2>
  <tr>
    <td>cell1</td>
    <td>cell2</td>
  </tr>
  <tr>
    <td>cell1</td>
    <td>cell2</td>
  </tr>
  </table>
  </td>
</tr>
</table>
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
I'm alittle confused. your first table example does the same as this
<tr>

<td>cell1</td><td>cell2</td>
</tr><tr>
<td>cell1</td><td>cell2</td>

</tr>
the only possible diff I can think of is the outline if you use a border
possible the fact you're posting a section of what you're thinking about and I can't see exactly what you mean. Honestly if you get the table formatted the way you want it then there's nothing wrong with it (or it's not bad coding) You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
yeah...I know I can do it that way...but I want to have the colums in the nested tables to all have the same width without hardcoding a width in it.

With nested tables it will look like this

| dfa cell1 | cell2 |
|cell1|cell2 |

In internet Explorer
<td>
<tr>
<td>cell1</td><td>cell2</td>
</tr><tr>
<td>cell1</td><td>cell2</td>
</tr>
</td>

looks like
| dfa cell1 | cell2 |
|cell1 | cell2 |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top