Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag 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
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

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")
Avatar of Bruce Gust

ASKER

Here you go, padas!

I appreciate your time!

http://muscularchristianityonline.com/campus/
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

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

What else could I be missing?
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America 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
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!