Jump to content

not able to place image at top left


a65

Recommended Posts



<div id="logo"><img src="logo.jpg"</div>


<div id="login">login page
</div>

 <table>
<tr><td >Name</td><td width><input type=text name=myname></td></tr>
<tr><td>Age</td><td><input type=text name=myage></td></tr>
<tr>
<td> </td>
<td><input type=submit value=submit>
<input name="Reset" type=reset value=Reset></td>
</tr>
</table>
</div>

css code is

 

#logo {
float:left;
width: 50px;
height:10px;

}
#login
{
width:100%;
font:"Courier New", Courier, mono;
font_size:50px;
height:50px;
margin_left:150px;
background:blue;
margin_top:10px;

Edited by a65
Link to comment
Share on other sites

Can you explain a little more about the problem, your question is very vague. The image is displaying in the top left corner already. You left out the closing '/>' on your <img> tag and also some of the <input tags. I've added double quotes around your HTML attribute values also. I updated your code:

<div id="logo"><img src="logo.jpg" alt="yourImg" /></div>
<div id="login">login page</div>

<table>
<tr>
<td >Name</td>
<td width><input type="text" name="myname"></td>
</tr>
<tr>
<td>Age</td>
<td><input type="text" name="myage"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="submit" /><input name="Reset" type="reset" value="Reset" /></td>
</tr>
</table>
</div>

 

Also, there is an extra closing div </div> tag, but not opening div. Post your full code please

 

Regards,

 

L2c.

Edited by Love2c0de
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.