Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
the image should come in left side ,username and password should come next to image.here image coming top and username,password coming below that image. please give me a correct solution.
ASP.NET
<table bgcolor="#009900" border="0" cellpadding="5" cellspacing="1">
	<tr bgcolor="white"><td>
	<table bgcolor="white" style="width: 45px">
        <tr>
            <td><img src="img/images6.jpg" alt="Loan" class="style7" 
                    style="width: 80px; height: 80px"/></td> </tr></table>
            <table style="width: 259px">
		        <tr>
			        <td style="width :126px">
				    <asp:Label id="lblUserId" runat="server">UserId</td>
			        <td style="width: 116px">
				    <asp:TextBox id="txtUserId" runat="server" Width="126px"></td>
		        <tr>
			        <td style="width :80px">
				    <asp:Label id="lblPassword" runat="server">Password</td>
			    <td>
				<asp:TextBox id="txtPassword" runat="server" TextMode="Password" Width="126px"></td>
            </tr>
		     <tr>
			<td colspan="7" align="center">
				<asp:Button id="btnLogin" runat="server" Text="Login" Width="72px" ></td>
	        </tr>
        </tr>
	</table>
	</td></tr>
	</table>
Posted
v3
Comments
JoCodes 15-Sep-13 5:03am    
Those closing tags too for the server controls :)

1 solution

Below is corrected HTML

<table bgcolor="#009900" border="0" cellpadding="5" cellspacing="1">
        <tr bgcolor="white">
            <td>
                <table bgcolor="white" style="width: 45px">
                    <tr>
                        <td>
                            <img src="img/images6.jpg" alt="Loan" class="style7" style="width: 80px; height: 80px" />
                        </td>
                    </tr>
                </table>
              </td>
              <td>
                <table style="width: 259px">
                    <tr>
                        <td style="width: 126px">
                            <asp:label id="lblUserId" runat="server" xmlns:asp="#unknown">UserId </asp:label>
                        </td>
                        <td style="width: 116px">
                            <asp:textbox id="txtUserId" runat="server" width="126px" xmlns:asp="#unknown"> </asp:textbox>
                        </td>
                        <tr>
                            <td style="width: 80px">
                                <asp:label id="lblPassword" runat="server" xmlns:asp="#unknown">Password </asp:label>
                            </td>
                            <td>
                                <asp:textbox id="txtPassword" runat="server" textmode="Password" width="126px" xmlns:asp="#unknown"> </asp:textbox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="7" align="center">
                                <asp:button id="btnLogin" runat="server" text="Login" width="72px" xmlns:asp="#unknown" />
                            </td>
                        </tr>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900