Jump to content

Form Input Fields Off Center (Vertically)


djcubez

Recommended Posts

Here's a screenshot:

[img]http://djcubez.com/pictures/error/wtf.jpg[/img]

Here's the code:

[code]<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="30" width="650"><a href="#"><img src="images/bar_mid_link.jpg" /></a></td>
<form><td valign="top" height="30" width="300"><img src="images/bar_mid_username.jpg" /><input class="bar_mid_field" type="text" name="username" /><img src="images/bar_mid_password.jpg" /><input class="bar_mid_field" type="password" name="password" /></td></form>
</tr>
</table>[/code]

And here's a snippet from the style.css:

[code].bar_mid {
background-image: url("images/bar_mid.jpg");
background-repeat: repeat-x;
}
.bar_mid_field {
height: 15px;
width: 75px;
}[/code]

Link to comment
Share on other sites

Yea I'm sorry about that, check my post in a few minutes it will be edited with new information.

I tried using a "margin-bottom:" but different browsers read it differently so when it was on in another browser it was off in the other.
Link to comment
Share on other sites

I don't think having a form start and end tag as orphans stuffed in the middle of a set of table elements is helping.  Far better to have the form start and end outside the table, or start and end within the same td element.  Do you have any CSS that controls the margins/padding around a form? And what it is meant to look like?
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.