Avatar of Bruce Gust
Bruce Gust
Flag for United States of America asked on

How can I keep this form from forcing a line break?

Attached is a screen shot of a problem I'm having in that even when I incorporate "display:inline;" I'm getting a line break and I can't figure out why.

Here's my HTML:

<table class="login" border="1">
		<tr>
		<td valign="top" background="images/spacer.gif" width="160" height="23">
		&nbsp;<input type="text" size="23" class="login" name="email" value="email">
		</td>
		<td style="vertical-align:top;" background="images/spacer.gif" width="160" height="23">
		<input type="password" size="23" class="login" name="password" value="password">
		</td>
		<td style="vertical-align:top;" ><input type="image" src="images/login.png" border="0" name="submit"></form></td>
		<td>
		<IMG SRC="images/spacer.gif" width="325" height="23">
		</td>
		<td background="images/spacer.gif" width="175" height="23" style="vertical-align:top;">
			
		</td>
		</tr>
		</table></form></td>

Open in new window


Any ideas?
Screen-Shot-2013-12-23-at-2.15.3.png
CSS

Avatar of undefined
Last Comment
Bruce Gust

8/22/2022 - Mon
Scott Fell

You should post a link to your page in order to see what is happening.  The bit of code does not help.  I can guess it is your table width, but it could be something else in your css or inline css?  Please post a link to your sample page.  If you are working locally, then just upload the page and supporting css and javascript/jquery to a public folder.  If you can't do that, then recreate it on jsbin http://jsbin.com/  (if you are using jquery, just click, "add library")
Bruce Gust

ASKER
Here you go, padas!

I appreciate your time!

http://muscularchristianityonline.com/campus/
Scott Fell

On this line:

<td valign="top" background="images/spacer.gif" width="160" height="23">
		&nbsp;<input type="text" size="23" class="login" name="email" value="email">
		</td>

Open in new window


Remove the, "&nbsp;"
<td valign="top" background="images/spacer.gif" width="160" height="23">
	<input type="text" size="23" class="login" name="email" value="email">
		</td>

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Bruce Gust

ASKER
Did it, but didn't seem to make a difference.

What else could I be missing?
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bruce Gust

ASKER
Scott, I'm going to give you the points just because you've been hanging with me and your suggestions led to something that works (kind of). Take a look at the new question that I've got at https://www.experts-exchange.com/questions/28324843/How-can-I-get-this-submit-button-centered.html

Basically, I put the whole form in a single cell and it's much improved. I don't have the line break anymore, but the submit button is lingering at the top of the cell and I don't know how to get it centered.

I appreciate your input!