Link to home
Start Free TrialLog in
Avatar of nowmbie
nowmbieFlag for United States of America

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
SOLUTION
Avatar of muhammadyasir
muhammadyasir
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nowmbie

ASKER

Oh I was hoping that the 3 buttons would fill the page width.  So they would appear really wide.

thanks
please mark the answer as helpful.
thanks
Avatar of nowmbie

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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nowmbie

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>
   
Avatar of nowmbie

ASKER

Thanks for your help!  This place is great.