Forum Moderators: open

Message Too Old, No Replies

Creating Two tables next to each other using HTMLtable object

anyone have an idea how to do this

         

johnhamman

5:44 pm on Jun 15, 2002 (gmt 0)

10+ Year Member



Hi all,
Question: I would like to nest two tables inside a larger table like so:

<table>
<tr>
<td>
<table>
<tr>
<td> Table 1 inside Large Table</td>
</tr>
</table>
<table>
<tr>
<td> Table 2 inside Large Table</td>
</tr>
</table>
</td>
</tr>
</table>

and I would like to Code it all in the CODEBEHIND of the page so that all the HTML is in the compiled dll.
Problem is I can figure how to do 1 table inside a table but not 2 tables Does anyone know how to do this or will i have to do 2 rows in the outer Table?
thanks
john

Nick_W

6:00 pm on Jun 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm... I know nothing of .NET but in regular markup you would use css to float one of the tablss like this:


.tableleft {
float: left;
}

Does that help or should I just leave well alone in this forum? ;)

Nick

johnhamman

11:25 pm on Jun 15, 2002 (gmt 0)

10+ Year Member



nah acutaly i found my solution, i basicly had to add a new row for each table. cs works fine in the html. but what im doing is compileing the html in the asp.net code itself. using the System.Web.UI.HtmlControls class. What im doing for a project is building a .net forum that looks simular to this forum.
john