nowmbie
asked on
Fill a table cell with a button asp.net
Hello Experts,
I have 3 buttons and I want to display on a row (see Code Below) and I want the Buttons to fill the cell. What I get is Each cell is 33% of the page but the buttons are small, I would like them to be
back to back.
<table width="100%">
<tr>
<td style="width: 33%">
<asp:Button ID="btnTheWall" runat="server" Text="The Wall" />
</td>
<td style="width: 33%">
<asp:Button ID="btnCalander" runat="server" Text="The Calander" />
</td>
<td style="width: 33%">
<asp:Button ID="btnMyProfile" runat="server" Text="My Profile" />
</td>
</tr>
</table>
Thanks
Billy
I have 3 buttons and I want to display on a row (see Code Below) and I want the Buttons to fill the cell. What I get is Each cell is 33% of the page but the buttons are small, I would like them to be
back to back.
<table width="100%">
<tr>
<td style="width: 33%">
<asp:Button ID="btnTheWall" runat="server" Text="The Wall" />
</td>
<td style="width: 33%">
<asp:Button ID="btnCalander" runat="server" Text="The Calander" />
</td>
<td style="width: 33%">
<asp:Button ID="btnMyProfile" runat="server" Text="My Profile" />
</td>
</tr>
</table>
Thanks
Billy
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
please mark the answer as helpful.
thanks
thanks
ASKER
Do you know a way to fill the cell with the button? So if I have 3 cells for the width of the page, I need to have the buttons fill 3 cells across the page.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks That helped me along! With an adustment I gould get them side by side.
<table style="width: 100%">
<tr>
<td style="width: 50%">
<input type="button" value="Button1" style="width: 100%" />
</td>
<td style="width: 50%">
<input type="button" value="Button2" style="width: 100%" />
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 50%">
<input type="button" value="Button1" style="width: 100%" />
</td>
<td style="width: 50%">
<input type="button" value="Button2" style="width: 100%" />
</td>
</tr>
</table>
ASKER
Thanks for your help! This place is great.
ASKER
thanks