am I among html friends here? Adding a button into a row on an asp.net page


H

hazz

Below is one row with a company logo in the left table cell and 'Reporting Tool' in the table cell on the right.
I would like to add a button in this same row, just to the right of the company logo, which will be for clicking on to create an Excel spreadsheet from the grid.
How do I use the colspan tag so that the rows above and below don't create new table cells themselves? Thank you. -greg

<tr>
<td colspan="1" style="height: 1px; text-align: center; ">
<img src="Images/logo_small.gif" style="text-align: center; margin: 0px;" /></td>
<td style="height: 1px;width:10%; text-align: center"> Put button here. </td>
<td colspan="1" style="height: 1px;width:100%; text-align: center;">
<span style="font-size: 16pt; font-family: Tahoma"></span>
<h2><span style="font-size: 16pt; font-family: Tahoma">Reporting Tool</span></h2>
</td>
</tr>

what do i put in this row below so it is not affected by the additional table cell in the row above it? colspan = ?

<tr>
<td style="vertical-align: top; width: 200px; height: 300px; background-color: lightgrey">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" ImageSet="Arrows" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" BackColor="Yellow" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</td>
<td style="width: 403px; margin: 0px;">
&nbsp;
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
 
Ad

Advertisements

G

Guest

Not enitely sure what you are asking. The colspan atribute determines how
many columns a cell will span. e.g.

<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td collspan="2"></td>
</tr>
</table>

would give you a table with two rows. The first row would contain two cells
the second row would contain one cell that spanned acros the same space as
the two cells in the row above. I hope that helps.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top